use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class SearchMercuryTests method mercury_search_navigateUsingSearchSuggestionsOnMobile.
@Execute(onWikia = MercuryWikis.MERCURY_AUTOMATION_TESTING)
@InBrowser(emulator = Emulator.GOOGLE_NEXUS_5)
@Test(groups = { "mercury_search_navigateUsingSearchSuggestionsOnMobile", "Mercury_Search_001" })
public void mercury_search_navigateUsingSearchSuggestionsOnMobile() {
String clickedSuggestion = new GuidelinesPage().open().getTopBar().openSearch().typeInSearch(SEARCH_PHRASE).clickSearchSuggestion(0, Skin.MERCURY);
Assertion.assertTrue(new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI));
Assertion.assertEquals(clickedSuggestion.toLowerCase(), new ArticlePage().getHeader().getPageTitle().toLowerCase());
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class SearchMobileWikiTests method mercury_search_navigateUsingSearchSuggestionsOnMobile.
@Execute(onWikia = MercuryWikis.MERCURY_AUTOMATION_TESTING)
@InBrowser(emulator = Emulator.GOOGLE_NEXUS_5)
@Test(groups = { "mercury_search_navigateUsingSearchSuggestionsOnMobile", "Mercury_Search_001" })
public void mercury_search_navigateUsingSearchSuggestionsOnMobile() {
ArticlePage article = new ArticlePage().open(MercurySubpages.MAIN_PAGE);
String clickedSuggestion = article.getTopBar().openSearch().typeInSearch(SEARCH_PHRASE).clickSearchSuggestion(0, Skin.MOBILE_WIKI);
Assertion.assertEquals(clickedSuggestion.toLowerCase(), article.getHeader().getPageTitle().toLowerCase());
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class LoginTests method anonCanNotLogInWithInvalidPassword.
@Test(groups = "login-anonCanNotLogInWithInvalidPassword")
public void anonCanNotLogInWithInvalidPassword() {
ArticlePage article = new ArticlePage();
SignInPage signIn = article.open(MercurySubpages.MAIN_PAGE).getTopbar().openNavigation().clickOnSignInRegisterButton().navigateToSignIn();
signIn.login(Configuration.getCredentials().userName10, "someinvalidpassw0rd");
assertTrue(signIn.getError().contains(EXPECTED_ERROR_MESSAGE));
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class LoginTests method anonCanLogInAsRegisteredUser.
@Test(groups = "login-anonCanLogInAsRegisteredUser")
public void anonCanLogInAsRegisteredUser() {
ArticlePage article = new ArticlePage();
article.open(MercurySubpages.MAIN_PAGE).getTopbar().openNavigation().clickOnSignInRegisterButton().navigateToSignIn().login(Configuration.getCredentials().userName10, Configuration.getCredentials().password10);
assertTrue(article.userLoggedInMobile(Configuration.getCredentials().userName10));
}
use of com.wikia.webdriver.elements.mercury.pages.ArticlePage in project selenium-tests by Wikia.
the class LoginTests method anonCanNotLogInWithBlankPassword.
@Test(groups = "login-anonCanNotLogInWithBlankPassword")
public void anonCanNotLogInWithBlankPassword() {
ArticlePage article = new ArticlePage();
SignInPage signIn = article.open(MercurySubpages.MAIN_PAGE).getTopbar().openNavigation().clickOnSignInRegisterButton().navigateToSignIn();
signIn.login(Configuration.getCredentials().userName10, "someinvalidpassw0rd");
assertTrue(signIn.submitButtonNotClickable());
}
Aggregations