use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class ForgottenPasswordTests method executeResetPasswordFlow.
private void executeResetPasswordFlow(User user) {
EmailUtils.deleteAllEmails(credentials.email, credentials.emailPassword);
WikiBasePageObject base = new WikiBasePageObject();
base.openWikiPage(wikiURL);
DetachedSignInPage loginModal = new DetachedSignInPage(new NavigationBar(driver).clickOnSignIn());
loginModal.clickForgotPasswordLink().requestLinkForUsername(user.getUserName());
String resetLink = base.getPasswordResetLink(credentials.email, credentials.emailPassword);
ResetPasswordPage resetPass = new ResetPasswordPage(resetLink);
resetPass.setNewPassword(user.getPassword());
assertTrue(resetPass.newPasswordSetSuccessfully());
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class BasicActions method userSearch.
@Test(groups = { "userSearch", "Search", "Search2" })
@Execute(asUser = User.USER)
public void userSearch() {
WikiBasePageObject base = new WikiBasePageObject();
base.openWikiPage(testedWiki);
NavigationBar navigation = new NavigationBar(driver);
IntraWikiSearchPageObject search = navigation.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
search.verifyFirstArticleNameTheSame(SearchContent.SEARCH_PHRASE_RESULTS);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class SignUpTests method anonCanSignUpOnNewBaseAuthPageFromGlobalNav.
@Test(groups = "SignUp_anonCanSignUpOnNewBaseAuthPageFromGlobalNav")
public void anonCanSignUpOnNewBaseAuthPageFromGlobalNav() {
WikiBasePageObject base = new WikiBasePageObject();
NavigationBar registerLink = new NavigationBar(driver);
DetachedRegisterPage register = new DetachedRegisterPage(registerLink.clickOnRegister());
String userName = "User" + register.getTimeStamp();
String password = "Pass" + register.getTimeStamp();
String email = credentials.emailQaart2;
register.typeEmailAddress(email);
register.typeUsername(userName);
register.typePassword(password);
register.typeBirthdate(PageContent.WIKI_SIGN_UP_BIRTHMONTH, PageContent.WIKI_SIGN_UP_BIRTHDAY, PageContent.WIKI_SIGN_UP_BIRTHYEAR);
register.submit();
base.verifyUserLoggedIn(userName);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class SignUpTests method userCanLoginWithoutConfirmingVerificationEmail.
@Test(groups = "SignUp_userCanLoginWithoutConfirmingVerificationEmail")
public void userCanLoginWithoutConfirmingVerificationEmail() {
WikiBasePageObject base = new WikiBasePageObject();
AttachedRegisterPage signUp = base.openSpecialUserSignUpPage(wikiURL);
String userName = "User" + signUp.getTimeStamp();
String password = "Pass" + signUp.getTimeStamp();
String email = credentials.emailQaart2;
AttachedRegisterPage register = new AttachedRegisterPage();
register.typeEmailAddress(email);
register.typeUsername(userName);
register.typePassword(password);
register.typeBirthdate(PageContent.WIKI_SIGN_UP_BIRTHMONTH, PageContent.WIKI_SIGN_UP_BIRTHDAY, PageContent.WIKI_SIGN_UP_BIRTHYEAR);
register.submit();
base.verifyUserLoggedIn(userName);
base.logoutFromAnywhere();
NavigationBar signInLink = new NavigationBar(driver);
DetachedSignInPage page = new DetachedSignInPage(signInLink.clickOnSignIn());
page.login(userName, password);
base.verifyUserLoggedIn(userName);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class LoginTests method anonCanLoginAsStaffOnAuthModalFromGlobalNavigation.
@Test(groups = "Login_anonCanLoginAsStaffOnAuthModalFromGlobalNavigation")
public void anonCanLoginAsStaffOnAuthModalFromGlobalNavigation() {
WikiBasePageObject base = new WikiBasePageObject();
NavigationBar signInLink = new NavigationBar(driver);
base.openWikiPage(wikiURL);
DetachedSignInPage authModal = new DetachedSignInPage(signInLink.clickOnSignIn());
//we are using userNameStaff2 because of PLATFORM-2502 and PLATFORM-2508
authModal.login(credentials.userNameStaff2, credentials.passwordStaff2);
base.verifyUserLoggedIn(credentials.userNameStaff2);
}
Aggregations