use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class GuidelinesTests method discussionsModeratorOnDesktopCanSeeGuidelinesHeroUnit.
@Test(groups = "discussions-discussionsModeratorOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.DISCUSSIONS_MODERATOR)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void discussionsModeratorOnDesktopCanSeeGuidelinesHeroUnit() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.isGuidelinesHeroUnitDisplayed());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class GuidelinesTests method regularUserOnDesktopCanNotClickEditGuidelines.
@Test(groups = "discussions-regularUserOnDesktopCanNotSeeEditGuidelines")
@Execute(asUser = User.USER_6)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void regularUserOnDesktopCanNotClickEditGuidelines() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertFalse(guidelinesPage.isEditButtonDisplayed());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class SearchMercuryTests method mercury_search_userIsRedirectedToSearchResultsPage.
@Execute(onWikia = MercuryWikis.MERCURY_AUTOMATION_TESTING)
@InBrowser(emulator = Emulator.GOOGLE_NEXUS_5)
@Test(groups = { "mercury_search_userIsRedirectedToSearchResultsPage", "Mercury_Search_001" })
public void mercury_search_userIsRedirectedToSearchResultsPage() {
SearchResultsPage searchResults = new GuidelinesPage().open().getTopBar().openSearch().typeInSearch(SEARCH_PHRASE).clickEnterAndNavigateToSearchResults(Skin.MERCURY);
Assertion.assertTrue(searchResults.isSearchResultsPageOpen());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage 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.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class GuidelinesTests method anonUserOnDesktopCanSeeGuidelinesHeroUnit.
@Test(groups = "discussions-anonUserOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanSeeGuidelinesHeroUnit() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.isGuidelinesHeroUnitDisplayed());
}
Aggregations