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"));
}
Aggregations