Search in sources :

Example 1 with SortingFiltersOnDesktop

use of com.wikia.webdriver.elements.mercury.components.discussions.desktop.SortingFiltersOnDesktop in project selenium-tests by Wikia.

the class SortingTests method userCanSwitchBetweenLatestAndTrendingTab.

private void userCanSwitchBetweenLatestAndTrendingTab() {
    SortingFiltersOnDesktop filters = new PostsListPage().open().getSortingFiltersOnDesktop();
    filters.clickLatestOption();
    new Loading(driver).handleAsyncPageReload();
    Assertion.assertTrue(driver.getCurrentUrl().contains("latest"));
    filters.clickTrendingOption();
    new Loading(driver).handleAsyncPageReload();
    Assertion.assertTrue(driver.getCurrentUrl().contains("trending"));
}
Also used : Loading(com.wikia.webdriver.elements.mercury.components.Loading) SortingFiltersOnDesktop(com.wikia.webdriver.elements.mercury.components.discussions.desktop.SortingFiltersOnDesktop) PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)

Aggregations

Loading (com.wikia.webdriver.elements.mercury.components.Loading)1 SortingFiltersOnDesktop (com.wikia.webdriver.elements.mercury.components.discussions.desktop.SortingFiltersOnDesktop)1 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)1