Search in sources :

Example 16 with GuidelinesPage

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());
}
Also used : DiscussionsPage(com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage) GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 17 with GuidelinesPage

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());
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) SkinHelper(com.wikia.webdriver.common.skin.SkinHelper) GuidelinesPage(com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)17 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)17 GuidelinesPage (com.wikia.webdriver.elements.mercury.pages.discussions.GuidelinesPage)17 Test (org.testng.annotations.Test)17 DiscussionsPage (com.wikia.webdriver.elements.mercury.pages.discussions.DiscussionsPage)4 SkinHelper (com.wikia.webdriver.common.skin.SkinHelper)2 ArticlePage (com.wikia.webdriver.elements.mercury.pages.ArticlePage)1 SearchResultsPage (com.wikia.webdriver.elements.mercury.pages.SearchResultsPage)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1