Пример #1
0
    def test_that_checks_the_vote_of_an_article(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        article_page = home.click_to_see_first_article()
        Assert.contains("How to | Firefox Help", article_page.page_title)
        Assert.equal("Was this article helpful?", article_page.helpul_form_text)

        article_page.click_helpful_button()
        Assert.true(article_page.is_vote_box_visible)
        Assert.equal(u"Glad to hear it \u2014 thanks for the feedback!", article_page.vote_box_text)
Пример #2
0
    def test_that_checks_the_vote_of_an_article(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        article_page = home.click_to_see_first_article()
        Assert.contains("How to | Firefox Help", article_page.page_title)
        Assert.equal("Was this article helpful?",
                     article_page.helpul_form_text)

        article_page.click_helpful_button()
        Assert.true(article_page.is_vote_box_visible)
        Assert.equal(u"Glad to hear it \u2014 thanks for the feedback!",
                     article_page.vote_box_text)