Search in sources :

Example 1 with FiltersPopOver

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();
}
Also used : Loading(com.wikia.webdriver.elements.mercury.components.Loading) FiltersPopOver(com.wikia.webdriver.elements.mercury.components.discussions.mobile.FiltersPopOver) PostsListPage(com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage) DiscussionsHeader(com.wikia.webdriver.elements.mercury.components.discussions.mobile.DiscussionsHeader)

Example 2 with FiltersPopOver

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);
}
Also used : FiltersPopOver(com.wikia.webdriver.elements.mercury.components.discussions.mobile.FiltersPopOver)

Aggregations

FiltersPopOver (com.wikia.webdriver.elements.mercury.components.discussions.mobile.FiltersPopOver)2 Loading (com.wikia.webdriver.elements.mercury.components.Loading)1 DiscussionsHeader (com.wikia.webdriver.elements.mercury.components.discussions.mobile.DiscussionsHeader)1 PostsListPage (com.wikia.webdriver.elements.mercury.pages.discussions.PostsListPage)1