use of com.wikia.webdriver.elements.mercury.components.discussions.mobile.DiscussionsHeader in project selenium-tests by Wikia.
the class SortingTests method userCanSwitchBetweenLatestAndTrendingInDropdown.
/**
* TESTING METHODS SECTION
*/
private void userCanSwitchBetweenLatestAndTrendingInDropdown() {
PostsListPage page = new PostsListPage().open();
FiltersPopOver filtersPopOver = page.getFiltersPopOver();
DiscussionsHeader discussionsHeader = page.getDiscussionsHeader();
discussionsHeader.clickSortButtonOnMobile();
Assertion.assertTrue(filtersPopOver.isSortListVisibleMobile());
filtersPopOver.clickLatestLinkOnMobile();
filtersPopOver.clickApplyButton();
new Loading(driver).handleAsyncPageReload();
discussionsHeader.clickSortButtonOnMobile();
filtersPopOver.clickTrendingOptionInSortMenu();
filtersPopOver.clickApplyButton();
new Loading(driver).handleAsyncPageReload();
}
Aggregations