def test_the_developers_comments_section(self, mozwebqa):
     """
     Test for Litmus 25724.
     https://litmus.mozilla.org/show_test.cgi?id=25724
     """
     details_page = Details(mozwebqa, 'Firebug')
     Assert.equal(details_page.devs_comments_title, u"Developer\u2019s Comments")
     details_page.click_devs_comments()
     Assert.true(details_page.is_devs_comments_section_expanded())
     Assert.not_none(re.match('(\w+\s*){3,}', details_page.devs_comments_message))
예제 #2
0
 def test_the_developers_comments_section(self, mozwebqa):
     """
     Test for Litmus 25724.
     https://litmus.mozilla.org/show_test.cgi?id=25724
     """
     details_page = Details(mozwebqa, 'Firebug')
     Assert.equal(details_page.devs_comments_title,
                  u"Developer\u2019s Comments")
     details_page.click_devs_comments()
     Assert.true(details_page.is_devs_comments_section_expanded())
     Assert.not_none(
         re.match('(\w+\s*){3,}', details_page.devs_comments_message))
    def test_that_firebug_devs_comments_is_correct(self, mozwebqa):
        """Test for Litmus 15329."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.click_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        #api
        addons_xml = AddOnsAPI(mozwebqa)
        xml_devs_comments = addons_xml.get_devs_comments(self.firebug)

        Assert.equal(xml_devs_comments, browser_devs_comments)
    def test_that_firebug_devs_comments_is_correct(self, mozwebqa):
        """Test for Litmus 15329."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.click_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        #api
        addons_xml = AddOnsAPI(mozwebqa)
        xml_devs_comments = addons_xml.get_devs_comments(self.firebug)

        Assert.equal(xml_devs_comments, browser_devs_comments)