def test_that_whats_this_link_for_source_license_links_to_an_answer_in_faq(self, mozwebqa):
     """Test for Litmus 11530."""
     details_page = Details(mozwebqa, "Firebug")
     details_page.expand_version_information()
     user_faq_page = details_page.click_whats_this_license()
     Assert.not_none(re.match('(\w+\s*){3,}', user_faq_page.license_question))
     Assert.not_none(re.match('(\w+\s*){3,}', user_faq_page.license_answer))
Exemple #2
0
 def test_view_the_source_in_the_version_information(self, base_url, selenium):
     details_page = Details(base_url, selenium, "Firebug")
     assert 'Version Information' == details_page.version_information_heading
     details_page.expand_version_information()
     assert 'View the source' == details_page.view_source_code_text
     view_source = details_page.click_view_source_code()
     assert '/files/browse/' in view_source.get_url_current_page()
 def test_what_is_this_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     assert details_page.version_information_heading == "Version Information"
     details_page.expand_version_information()
     assert "What's this?" == details_page.license_faq_text
     license_faq = details_page.click_whats_this_license()
     assert "Frequently Asked Questions" == license_faq.header_text)
 def test_view_the_source_in_the_version_information(self, base_url, selenium):
     details_page = Details(base_url, selenium, "Firebug")
     assert 'Version Information' == details_page.version_information_heading
     details_page.expand_version_information()
     assert 'View the source' == details_page.view_source_code_text
     view_source = details_page.click_view_source_code()
     assert '/files/browse/' in view_source.get_url_current_page()
 def test_view_the_source_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     Assert.equal(details_page.version_information_heading, "Version Information")
     details_page.expand_version_information()
     Assert.equal("View the source", details_page.view_source_code_text)
     view_source = details_page.click_view_source_code()
     Assert.contains('/files/browse/', view_source.get_url_current_page())
 def test_what_is_this_in_the_version_information(self, base_url, selenium):
     details_page = Details(base_url, selenium, "Firebug")
     assert 'Version Information' == details_page.version_information_heading
     details_page.expand_version_information()
     assert 'What\'s this?' == details_page.license_faq_text
     license_faq = details_page.click_whats_this_license()
     assert 'Frequently Asked Questions' == license_faq.header_text
 def test_what_is_this_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     Assert.equal(details_page.version_information_heading, "Version Information")
     details_page.expand_version_information()
     Assert.equal("What's this?", details_page.license_faq_text)
     license_faq = details_page.click_whats_this_license()
     Assert.equal("Frequently Asked Questions", license_faq.header_text)
    def test_that_compatible_applications_equal(self, mozwebqa):

        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_version_information()
        browser_compatible_applications = firebug_page.compatible_applications

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_compatible_applications = addons_xml.get_compatible_applications()
        name = xml_compatible_applications[0]
        min_version = xml_compatible_applications[1]
        max_version = xml_compatible_applications[2]

        # E.g.: Works with Firefox 1.0
        meta_compat_prefix = 'Works with %s %s ' % (name, min_version)
        # E.g.: Works with Firefox 1.0 and later
        meta_compat_abbrev = meta_compat_prefix + 'and later'
        # E.g.: Works with Firefox 1.0 - 16.0a1
        meta_compat_full = "%s- %s" % (meta_compat_prefix, max_version)

        assert (browser_compatible_applications == meta_compat_full or
                browser_compatible_applications == meta_compat_abbrev or
                browser_compatible_applications.startswith(meta_compat_prefix)
                ), "Listed compat. versions don't match versions listed in API."
Exemple #9
0
    def test_that_compatible_applications_equal(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_version_information()
        browser_compatible_applications = firebug_page.compatible_applications

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_compatible_applications = addons_xml.get_compatible_applications()
        name = xml_compatible_applications[0]
        min_version = xml_compatible_applications[1]
        max_version = xml_compatible_applications[2]

        # E.g.: Works with Firefox 1.0
        meta_compat_prefix = 'Works with %s %s ' % (name, min_version)
        # E.g.: Works with Firefox 1.0 and later
        meta_compat_abbrev = meta_compat_prefix + 'and later'
        # E.g.: Works with Firefox 1.0 - 16.0a1
        meta_compat_full = "%s- %s" % (meta_compat_prefix, max_version)

        assert (
            browser_compatible_applications == meta_compat_full
            or browser_compatible_applications == meta_compat_abbrev
            or browser_compatible_applications.startswith(meta_compat_prefix)
        ), "Listed compat. versions don't match versions listed in API."
 def test_what_is_this_in_the_version_information(self, base_url, selenium):
     details_page = Details(base_url, selenium, "Firebug")
     assert 'Version Information' == details_page.version_information_heading
     details_page.expand_version_information()
     assert 'What\'s this?' == details_page.license_faq_text
     license_faq = details_page.click_whats_this_license()
     assert 'Frequently Asked Questions' == license_faq.header_text
 def test_view_the_source_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     assert details_page.version_information_heading == "Version Information"
     details_page.expand_version_information()
     assert "View the source" == details_page.view_source_code_text
     view_source = details_page.click_view_source_code()
     assert '/files/browse/' in view_source.get_url_current_page()
Exemple #12
0
 def test_view_the_source_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     Assert.equal(details_page.version_information_heading,
                  "Version Information")
     details_page.expand_version_information()
     Assert.equal("View the source", details_page.view_source_code_text)
     view_source = details_page.click_view_source_code()
     Assert.contains('/files/browse/', view_source.get_url_current_page())
Exemple #13
0
 def test_that_whats_this_link_for_source_license_links_to_an_answer_in_faq(
         self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     details_page.expand_version_information()
     user_faq_page = details_page.click_whats_this_license()
     Assert.not_none(
         re.match('(\w+\s*){3,}', user_faq_page.license_question))
     Assert.not_none(re.match('(\w+\s*){3,}', user_faq_page.license_answer))
Exemple #14
0
 def test_what_is_this_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     Assert.equal(details_page.version_information_heading,
                  "Version Information")
     details_page.expand_version_information()
     Assert.equal("What's this?", details_page.license_faq_text)
     license_faq = details_page.click_whats_this_license()
     Assert.equal("Frequently Asked Questions", license_faq.header_text)
 def test_that_whats_this_link_for_source_license_links_to_an_answer_in_faq(
         self, base_url, selenium):
     details_page = Details(base_url, selenium, "Firebug")
     details_page.expand_version_information()
     user_faq_page = details_page.click_whats_this_license()
     assert re.match('(\w+\s*){3,}',
                     user_faq_page.license_question) is not None
     assert re.match('(\w+\s*){3,}',
                     user_faq_page.license_answer) is not None
 def test_what_is_this_in_the_version_information(self, mozwebqa):
     """
     https://litmus.mozilla.org/show_test.cgi?id=7906
     """
     details_page = Details(mozwebqa, "MemChaser")
     Assert.equal(details_page.version_information_heading, "Version Information")
     details_page.expand_version_information()
     Assert.equal("What's this?", details_page.license_faq_text)
     license_faq = details_page.click_whats_this_license()
     Assert.equal("Frequently Asked Questions", license_faq.header_text)
Exemple #17
0
 def test_what_is_this_in_the_version_information(self, mozwebqa):
     """
     https://litmus.mozilla.org/show_test.cgi?id=7906
     """
     details_page = Details(mozwebqa, "MemChaser")
     Assert.equal(details_page.version_information_heading,
                  "Version Information")
     details_page.expand_version_information()
     Assert.equal("What's this?", details_page.license_faq_text)
     license_faq = details_page.click_whats_this_license()
     Assert.equal("Frequently Asked Questions", license_faq.header_text)
    def test_that_version_information_is_displayed(self, base_url, selenium):
        details_page = Details(base_url, selenium, 'Firebug')
        assert 'Version Information' == details_page.version_information_heading

        details_page.expand_version_information()
        assert details_page.is_version_information_section_expanded
        assert details_page.is_source_code_license_information_visible
        assert details_page.is_whats_this_license_visible
        assert details_page.is_complete_version_history_visible
        assert details_page.is_version_information_install_button_visible
        # check that the release number matches the version number at the top of the page
        assert 'Version %s' % details_page.version_number == details_page.release_version
    def test_that_version_information_is_displayed(self, base_url, selenium):
        details_page = Details(base_url, selenium, 'Firebug')
        assert 'Version Information' == details_page.version_information_heading

        details_page.expand_version_information()
        assert details_page.is_version_information_section_expanded
        assert details_page.is_source_code_license_information_visible
        assert details_page.is_whats_this_license_visible
        assert details_page.is_complete_version_history_visible
        assert details_page.is_version_information_install_button_visible
        # check that the release number matches the version number at the top of the page
        assert 'Version %s' % details_page.version_number == details_page.release_version
    def test_that_version_information_is_displayed(self, mozwebqa):
        details_page = Details(mozwebqa, 'Firebug')
        Assert.equal(details_page.version_information_heading, 'Version Information')

        details_page.expand_version_information()
        Assert.true(details_page.is_version_information_section_expanded)
        Assert.true(details_page.is_source_code_license_information_visible)
        Assert.true(details_page.is_whats_this_license_visible)
        Assert.true(details_page.is_view_the_source_link_visible)
        Assert.true(details_page.is_complete_version_history_visible)
        Assert.true(details_page.is_version_information_install_button_visible)
        # check that the release number matches the version number at the top of the page
        Assert.equal('Version %s' % details_page.version_number, details_page.release_version)
Exemple #21
0
    def test_that_version_information_is_displayed(self, mozwebqa):
        details_page = Details(mozwebqa, 'Firebug')
        Assert.equal(details_page.version_information_heading,
                     'Version Information')

        details_page.expand_version_information()
        Assert.true(details_page.is_version_information_section_expanded)
        Assert.true(details_page.is_source_code_license_information_visible)
        Assert.true(details_page.is_whats_this_license_visible)
        Assert.true(details_page.is_view_the_source_link_visible)
        Assert.true(details_page.is_complete_version_history_visible)
        Assert.true(details_page.is_version_information_install_button_visible)
        # check that the release number matches the version number at the top of the page
        Assert.equal('Version %s' % details_page.version_number,
                     details_page.release_version)
    def test_that_compatible_applications_equal(self, mozwebqa):
        """Test for Litmus 15323."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_version_information()
        browser_compatible_applications = firebug_page.compatible_applications

        #api
        addons_xml = AddOnsAPI(mozwebqa)
        xml_compatible_applications = addons_xml.get_compatible_applications("firebug")
        name = xml_compatible_applications[0]
        min_version = xml_compatible_applications[1]
        max_version = xml_compatible_applications[2]
        Assert.equal(browser_compatible_applications, 'Works with %s %s - %s' % (name, min_version, max_version))
    def test_that_version_information_is_displayed(self, mozwebqa):
        """Test for Litmus 9890."""
        details_page = Details(mozwebqa, 'Firebug')
        Assert.equal(details_page.version_information_heading, 'Version Information')
        """
        Test for Litmus 25721.
        https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=25721
        """

        details_page.expand_version_information()
        Assert.true(details_page.is_version_information_section_expanded)
        Assert.true(details_page.is_source_code_license_information_visible)
        Assert.true(details_page.is_whats_this_license_visible)
        Assert.true(details_page.is_view_the_source_link_visible)
        Assert.true(details_page.is_complete_version_history_visible)
        Assert.true(details_page.is_version_information_install_button_visible)
        # check that the release number matches the version number at the top of the page
        Assert.equal('Version %s' % details_page.version_number, details_page.release_version)
Exemple #24
0
    def test_that_version_information_is_displayed(self, mozwebqa):
        """Test for Litmus 9890."""
        details_page = Details(mozwebqa, 'Firebug')
        Assert.equal(details_page.version_information_heading,
                     'Version Information')
        """
        Test for Litmus 25721.
        https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=25721
        """

        details_page.expand_version_information()
        Assert.true(details_page.is_version_information_section_expanded)
        Assert.true(details_page.is_source_code_license_information_visible)
        Assert.true(details_page.is_whats_this_license_visible)
        Assert.true(details_page.is_view_the_source_link_visible)
        Assert.true(details_page.is_complete_version_history_visible)
        Assert.true(details_page.is_version_information_install_button_visible)
        # check that the release number matches the version number at the top of the page
        Assert.equal('Version %s' % details_page.version_number,
                     details_page.release_version)
 def test_that_whats_this_link_for_source_license_links_to_an_answer_in_faq(self, mozwebqa):
     details_page = Details(mozwebqa, "Firebug")
     details_page.expand_version_information()
     user_faq_page = details_page.click_whats_this_license()
     assert re.match('(\w+\s*){3,}', user_faq_page.license_question) is not None
     assert re.match('(\w+\s*){3,}', user_faq_page.license_answer) is not None