def test_all_featured_extensions_link(self, mozwebqa): home = Home(mozwebqa) assert home.is_the_current_page assert 'Featured' == home.default_selected_tab_text featured_extensions = home.click_all_featured_addons_link() assert 'ADD-ONS' == featured_extensions.title assert 'Featured Extensions' == featured_extensions.page_header assert 'sort=featured' in featured_extensions.get_url_current_page()
def test_all_featured_extensions_link(self, base_url, selenium): home = Home(base_url, selenium) assert home.is_the_current_page assert 'Featured' == home.default_selected_tab_text featured_extensions = home.click_all_featured_addons_link() assert 'ADD-ONS' == featured_extensions.title assert 'Featured Extensions' == featured_extensions.page_header assert 'sort=featured' in featured_extensions.get_url_current_page()
def test_all_featured_extensions_link(self, mozwebqa): home = Home(mozwebqa) Assert.true(home.is_the_current_page) Assert.equal(home.default_selected_tab_text, "Featured") featured_extensions = home.click_all_featured_addons_link() Assert.equal(featured_extensions.title, "ADD-ONS") Assert.equal(featured_extensions.page_header, "Featured Extensions") Assert.contains("sort=featured", featured_extensions.get_url_current_page())
def test_all_featured_extensions_link(self, mozwebqa): home = Home(mozwebqa) Assert.true(home.is_the_current_page) Assert.equal(home.default_selected_tab_text, 'Featured') featured_extensions = home.click_all_featured_addons_link() Assert.equal(featured_extensions.title, 'ADD-ONS') Assert.equal(featured_extensions.page_header, 'Featured Extensions') Assert.contains('sort=featured', featured_extensions.get_url_current_page())
def test_all_featured_extensions_link(self, mozwebqa): home = Home(mozwebqa) Assert.true(home.is_the_current_page) Assert.equal(home.default_selected_tab_text, 'Featured') home.scroll_down # workaround for selenium scroll issue featured_extensions = home.click_all_featured_addons_link() Assert.equal(featured_extensions.title, 'ADD-ONS') Assert.equal(featured_extensions.page_header, 'Featured Extensions') Assert.contains('sort=featured', featured_extensions.get_url_current_page())
def test_sort_by_region(self, mozwebqa): home = Home(mozwebqa) extensions_page = home.click_all_featured_addons_link() sort_menu = extensions_page.click_sort_by() Assert.true(sort_menu.is_extensions_dropdown_visible) actual_options = sort_menu.options expected_options = self.sort_options Assert.equal(len(actual_options), len(expected_options)) for i in range(len(actual_options)): Assert.equal(actual_options[i].name, expected_options[i]) Assert.true(actual_options[i].is_option_visible)
def test_all_featured_extensions_link(self, mozwebqa): """ litmus 15136 https://litmus.mozilla.org/show_test.cgi?id=15136 """ home = Home(mozwebqa) Assert.true(home.is_the_current_page) Assert.equal(home.default_selected_tab_text, 'Featured') featured_extensions = home.click_all_featured_addons_link() Assert.equal(featured_extensions.title, 'MOBILE ADD-ONS') Assert.equal(featured_extensions.page_header, 'Featured Extensions') Assert.contains('sort=featured', featured_extensions.get_url_current_page())
def test_sort_by_region(self, base_url, selenium): home = Home(base_url, selenium) extensions_page = home.click_all_featured_addons_link() sort_menu = extensions_page.click_sort_by() assert sort_menu.is_extensions_dropdown_visible actual_options = sort_menu.options expected_options = self.sort_options assert len(expected_options) == len(actual_options) for i in range(len(actual_options)): assert expected_options[i] == actual_options[i].name assert actual_options[i].is_option_visible
def test_sort_by_region(self, mozwebqa): home = Home(mozwebqa) extensions_page = home.click_all_featured_addons_link() sort_menu = extensions_page.click_sort_by() assert sort_menu.is_extensions_dropdown_visible actual_options = sort_menu.options expected_options = self.sort_options assert len(expected_options) == len(actual_options) for i in range(len(actual_options)): assert expected_options[i] == actual_options[i].name assert actual_options[i].is_option_visible