Search in sources :

Example 1 with FacebookSettingsPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.facebook.FacebookSettingsPageObject in project selenium-tests by Wikia.

the class FacebookTests method userCanSignUpViaFacebook.

@Test(groups = "Facebook_userCanSignUpViaFacebook")
public void userCanSignUpViaFacebook() {
    GraphApi api = new GraphApi();
    HashMap<String, String> test_user = api.createFacebookTestUser(wikiaProductionAppId);
    new FacebookSettingsPageObject(driver).open();
    new FacebookMainPageObject(driver).login(test_user.get("email"), test_user.get("password"));
    AttachedRegisterPage signUp = new AttachedRegisterPage().open();
    FacebookSignupModalComponentObject fbModal = signUp.clickFacebookSignUp();
    String userName = "QA" + signUp.getTimeStamp();
    String password = "Pass" + signUp.getTimeStamp();
    fbModal.createAccountNoEmail(test_user.get("email"), userName, password);
    new WikiBasePageObject().verifyUserLoggedIn(userName);
    api.deleteFacebookTestUser(test_user.get("id"));
}
Also used : GraphApi(com.wikia.webdriver.common.core.api.GraphApi) FacebookSettingsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.facebook.FacebookSettingsPageObject) FacebookMainPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.facebook.FacebookMainPageObject) FacebookSignupModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.FacebookSignupModalComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) AttachedRegisterPage(com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.AttachedRegisterPage) Test(org.testng.annotations.Test)

Aggregations

GraphApi (com.wikia.webdriver.common.core.api.GraphApi)1 FacebookSignupModalComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.FacebookSignupModalComponentObject)1 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)1 AttachedRegisterPage (com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.AttachedRegisterPage)1 FacebookMainPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.facebook.FacebookMainPageObject)1 FacebookSettingsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.facebook.FacebookSettingsPageObject)1 Test (org.testng.annotations.Test)1