예제 #1
0
 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.click_version_information_header()
     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))
예제 #2
0
 def test_view_the_source_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "MemChaser")
     Assert.equal(details_page.version_information_heading, "Version Information")
     details_page.click_version_information_header()
     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())
예제 #3
0
 def test_view_the_source_in_the_version_information(self, mozwebqa):
     details_page = Details(mozwebqa, "MemChaser")
     Assert.equal(details_page.version_information_heading,
                  "Version Information")
     details_page.click_version_information_header()
     Assert.equal("View the source", details_page.view_source_code.text)
     details_page.view_source_code.click()
     Assert.contains('/files/browse/', details_page.get_url_current_page())
예제 #4
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.click_version_information_header()
     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)
예제 #5
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.click_version_information_header()
     Assert.equal("What's this?", details_page.license_faq.text)
     details_page.license_faq.click()
     Assert.equal("Frequently Asked Questions",
                  details_page.freq_asked_question)
    def test_that_compatible_applications_equal(self, mozwebqa):
        """Test for Litmus 15323."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.click_version_information_header()
        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_compatible_applications_equal(self, mozwebqa):
        """Test for Litmus 15323."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.click_version_information_header()
        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.click_version_information_header()
        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)
예제 #9
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.click_version_information_header()
        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)