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"));
}
Aggregations