Exemple #1
0
 def test_sorting_by_number_of_most_users(self, mozwebqa):
     """
     Test for Litmus 24867.
     https://litmus.mozilla.org/show_test.cgi?id=24867
     """
     search_page = Home(mozwebqa).header.search_for('firebug')
     search_page.sort_by('Most Users')
     Assert.contains('sort=users', search_page.get_url_current_page())
     Assert.is_sorted_descending([i.users for i in search_page.results])
Exemple #2
0
 def test_sorting_by_newest(self, mozwebqa):
     """
     Test for Litmus 17343.
     https://litmus.mozilla.org/show_test.cgi?id=17343
     """
     search_page = Home(mozwebqa).header.search_for('firebug')
     search_page.sort_by('Newest')
     Assert.true('sort=created' in search_page.get_url_current_page())
     Assert.is_sorted_descending([i.created_date for i in search_page.results])
Exemple #3
0
 def test_sorting_by_number_of_most_users(self, mozwebqa):
     """
     Test for Litmus 24867.
     https://litmus.mozilla.org/show_test.cgi?id=24867
     """
     search_page = Home(mozwebqa).header.search_for('firebug')
     search_page.sort_by('Most Users')
     Assert.contains('sort=users', search_page.get_url_current_page())
     Assert.is_sorted_descending([i.users for i in search_page.results])
Exemple #4
0
 def test_sorting_by_newest(self, mozwebqa):
     """
     Test for Litmus 17343.
     https://litmus.mozilla.org/show_test.cgi?id=17343
     """
     search_page = Home(mozwebqa).header.search_for('firebug')
     search_page.sort_by('Newest')
     Assert.true('sort=created' in search_page.get_url_current_page())
     Assert.is_sorted_descending([i.created_date for i in search_page.results])
Exemple #5
0
 def test_sorting_by_most_recently_updated(self, mozwebqa):
     """
     Test for Litmus 17345.
     https://litmus.mozilla.org/show_test.cgi?id=17345
     """
     search_page = Home(mozwebqa).header.search_for('firebug')
     search_page.sort_by('Recently Updated')
     Assert.contains('sort=updated', search_page.get_url_current_page())
     results = [i.updated_date for i in search_page.results]
     Assert.is_sorted_descending(results)
     search_page.paginator.click_next_page()
     results.extend([i.updated_date for i in search_page.results])
     Assert.is_sorted_descending(results)
Exemple #6
0
 def test_sorting_by_most_recently_updated(self, mozwebqa):
     """
     Test for Litmus 17345.
     https://litmus.mozilla.org/show_test.cgi?id=17345
     """
     search_page = Home(mozwebqa).header.search_for('firebug')
     search_page.sort_by('Recently Updated')
     Assert.contains('sort=updated', search_page.get_url_current_page())
     results = [i.updated_date for i in search_page.results]
     Assert.is_sorted_descending(results)
     search_page.paginator.click_next_page()
     results.extend([i.updated_date for i in search_page.results])
     Assert.is_sorted_descending(results)
Exemple #7
0
    def test_sorting_by_downloads(self, mozwebqa):
        """
        Test for Litmus 17342.
        https://litmus.mozilla.org/show_test.cgi?id=17342
        """
        search_page = Home(mozwebqa).header.search_for('firebug')
        search_page.sort_by('Weekly Downloads')
        Assert.true('sort=downloads' in search_page.get_url_current_page())
        downloads = [i.downloads for i in search_page.results]
        Assert.is_sorted_descending(downloads)
        search_page.paginator.click_next_page()

        downloads.extend([i.downloads for i in search_page.results])
        Assert.is_sorted_descending(downloads)
Exemple #8
0
    def test_sorting_by_downloads(self, mozwebqa):
        """
        Test for Litmus 17342.
        https://litmus.mozilla.org/show_test.cgi?id=17342
        """
        search_page = Home(mozwebqa).header.search_for('firebug')
        search_page.sort_by('Weekly Downloads')
        Assert.true('sort=downloads' in search_page.get_url_current_page())
        downloads = [i.downloads for i in search_page.results]
        Assert.is_sorted_descending(downloads)
        search_page.paginator.click_next_page()
        search_page.wait_for_results_refresh()

        downloads.extend([i.downloads for i in search_page.results])
        Assert.is_sorted_descending(downloads)