use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class GuidelinesTests method anonUserOnDesktopCanClickBackToDiscussions.
/**
* ANONS ON DESKTOP SECTION
*/
@Test(groups = "discussions-anonUserOnDesktopCanClickBackToDiscussions")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanClickBackToDiscussions() {
DiscussionsPage mainDiscussionPage = new GuidelinesPage().open().clickBackToDiscussions();
Assertion.assertTrue(mainDiscussionPage.isWikiaHomeLinkDisplayed());
}
use of com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage in project selenium-tests by Wikia.
the class SearchMercuryTests method mercury_search_navigateUsingSearchSuggestionsOnDesktop.
@Execute(onWikia = "dauto")
@Test(groups = { "mercury_search_navigateUsingSearchSuggestionsOnDesktop", "Mercury_Search_001" })
@InBrowser(browser = Browser.FIREFOX, browserSize = "1920x1080")
public void mercury_search_navigateUsingSearchSuggestionsOnDesktop() {
String clickedSuggestion = new GuidelinesPage().open().getTopBar().typeInDesktopSearchAndSelectSuggestion(SEARCH_PHRASE, 0);
Assertion.assertTrue(new SkinHelper(driver).isSkin(Skin.OASIS));
Assertion.assertEquals(clickedSuggestion.toLowerCase(), new ArticlePageObject().getArticleName().toLowerCase());
}
Aggregations