Ejemplo n.º 1
0
 def test_that_clicking_mozilla_logo_loads_mozilla_dot_org(self, mozwebqa):
     """
     Litmus 22922
     https://litmus.mozilla.org/show_test.cgi?id=22922
     """
     amo_home_page = AddonsHomePage(mozwebqa)
     Assert.true(amo_home_page.is_mozilla_logo_visible)
     amo_home_page.click_mozilla_logo()
     Assert.equal(amo_home_page.get_url_current_page(), "http://www.mozilla.org/")
Ejemplo n.º 2
0
    def test_other_applications_thunderbird(self, testsetup):
        """ Test for litmus 5037
            https://litmus.mozilla.org/show_test.cgi?id=5037
        """

        amo_home_page = AddonsHomePage(testsetup)

        amo_home_page.header.click_other_applications()
        amo_home_page.header.click_thunderbird()
        Assert.true("thunderbird" in amo_home_page.get_url_current_page())

        amo_home_page.header.click_other_applications()
        Assert.false(amo_home_page.header.is_thunderbird_visible())
Ejemplo n.º 3
0
 def test_that_themes_categories_are_listed_on_left_hand_side(self, mozwebqa):
     """ test for litmus 15342"""
     amo_home_page = AddonsHomePage(mozwebqa)
     amo_themes_page = amo_home_page.click_themes()
     current_page_url = amo_home_page.get_url_current_page()
     Assert.true(current_page_url.endswith("/themes/"))
     default_categories = ["Animals", "Compact", "Large", "Miscellaneous", "Modern", "Nature", "OS Integration", "Retro", "Sports"]
     Assert.equal(amo_themes_page.categories_count, len(default_categories))
     count = 0
     for category in default_categories:
         count += 1
         current_category = amo_themes_page.get_category(count)
         Assert.equal(category, current_category)
Ejemplo n.º 4
0
 def test_sorting_by_users_number(self, testsetup):
     """Litmus 24867"""
     amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('users')
     Assert.true('sort=users' in amo_search_page.get_url_current_page())
     Assert.is_sorted_descending([i.users for i in amo_search_page.results()])
Ejemplo n.º 5
0
 def test_sorting_by_updated_date(self, testsetup):
     """ Litmus 17345
         https://litmus.mozilla.org/show_test.cgi?id=17345 """
     amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('updated')
     Assert.true('sort=updated' in amo_search_page.get_url_current_page())
     Assert.is_sorted_descending([i.updated_date for i in amo_search_page.results()])
Ejemplo n.º 6
0
 def test_sorting_by_downloads(self, testsetup):
     """ Litmus 17342
         https://litmus.mozilla.org/show_test.cgi?id=17342 """
     amo_search_page = AddonsHomePage(testsetup).search_for('firebug').sort_by('downloads')
     Assert.true('sort=weeklydownloads' in amo_search_page.get_url_current_page())
     Assert.is_sorted_descending([i.downloads for i in amo_search_page.results()])