use of com.wikia.webdriver.elements.mercury.components.discussions.mobile.FiltersPopOver 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();
}
use of com.wikia.webdriver.elements.mercury.components.discussions.mobile.FiltersPopOver in project selenium-tests by Wikia.
the class CategoriesTests method openPageAndSelectCategoryOnMobile.
// helpers
private void openPageAndSelectCategoryOnMobile(PostsListPage page, String categoryName) {
final FiltersPopOver filtersPopOver = page.getFiltersPopOver().click();
filtersPopOver.getCategoriesFieldset().clickCategoryWith(categoryName);
filtersPopOver.clickApplyButton();
page.waitForPageReloadWith(categoryName);
}
Aggregations