def test_switch_between_new_and_popular_tab(self, mozwebqa): """ Test to verify functionality for switch between New/Popular Tabs """ home_page = Home(mozwebqa) home_page.go_to_homepage() Assert.true(home_page.is_popular_category_tab_visible) Assert.true(home_page.is_new_category_tab_visible) home_page.click_new_menu_tab() Assert.equal('New', home_page.feed_title_text) Assert.true(len(home_page.new_apps) > 0) home_page.click_popular_menu_tab() Assert.equal('Popular', home_page.feed_title_text) Assert.true(len(home_page.popular_apps) > 0)
def test_switch_between_new_and_popular_tab(self, mozwebqa): """ Test to verify functionality for switch between New/Popular Tabs """ home_page = Home(mozwebqa) home_page.go_to_homepage() Assert.true(home_page.is_popular_category_tab_visible) Assert.true(home_page.is_new_category_tab_visible) home_page.click_new_menu_tab() Assert.equal('Fresh and New Apps', home_page.feed_title_text) Assert.true(len(home_page.new_apps) > 0) home_page.click_popular_menu_tab() Assert.equal('Popular All Time', home_page.feed_title_text) Assert.true(len(home_page.popular_apps) > 0)
def _take_first_popular_app_name(self, mozwebqa): home_page = Home(mozwebqa) home_page.click_popular_menu_tab() app_name = home_page.first_app_name return app_name
def _take_first_popular_app_name(self, mozwebqa): home_page = Home(mozwebqa) home_page.click_popular_menu_tab() app_name = home_page.first_app_name return app_name