def test_searching_for_complete_themes(self, base_url, selenium):
     page = CompleteThemes(base_url, selenium).open()
     results_page = page.search_for('nasa')
     # show results for all firefox versions and platforms
     results_page.filter.works_with.expand_filter_options()
     results_page.filter.works_with.click_filter_all_versions_of_firefox()
     results_page.filter.works_with.click_filter_all_systems()
     assert len(results_page.results) > 0
 def test_searching_for_complete_themes(self, base_url, selenium):
     page = CompleteThemes(base_url, selenium).open()
     results_page = page.search_for('nasa')
     # show results for all firefox versions and platforms
     results_page.filter.works_with.expand_filter_options()
     results_page.filter.works_with.click_filter_all_versions_of_firefox()
     results_page.filter.works_with.click_filter_all_systems()
     assert len(results_page.results) > 0
Example #3
0
 def test_searching_for_complete_themes(self, base_url, selenium):
     page = CompleteThemes(base_url, selenium).open()
     results_page = page.search_for('nasa')
     # show results for all firefox versions and platforms
     results_page.filter.works_with.expand_filter_options()
     results_page.filter.works_with.click_filter_all_versions_of_firefox()
     results_page.filter.works_with.click_filter_all_systems()
     assert len(results_page.results) > 0
     # click through to each result and verify navigation breadcrumbs
     for i in range(len(results_page.results)):
         addon = results_page.result(i).click_result()
         assert 'Complete Themes' in addon.breadcrumb
         selenium.back()
Example #4
0
 def click_complete_themes(self):
     themes_menu = self.selenium.find_element(By.CSS_SELECTOR, '#themes')
     complete_themes_menu = self.selenium.find_element(*self._complete_themes_menu_locator)
     ActionChains(self.selenium).move_to_element(themes_menu).\
         move_to_element(complete_themes_menu).click().\
         perform()
     from pages.desktop.complete_themes import CompleteThemes
     return CompleteThemes(self.testsetup)