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

        article_page = home.search_for('firefox').results[0].click()
        assert '| Mozilla Support' in article_page.page_title
        assert 'Was this article helpful?' == article_page.helpful_header_text

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

        article_page = home.search_for('firefox').results[0].click()
        assert '| Mozilla Support' in article_page.page_title
        assert 'Was this article helpful?' == article_page.helpful_header_text

        article_page.click_helpful_button()
        article_page.wait_for_vote_message_text(
            u'Glad to hear it \u2014 thanks for the feedback!')
Пример #3
0
    def test_that_negative_search_does_not_return_results(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        search_page = home.search_for("frfx")
        Assert.equal(len(search_page.results), 0)
Пример #4
0
    def test_that_positive_search_returns_results(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        search_page = home.search_for("firefox")
        Assert.greater(len(search_page.results), 0)
Пример #5
0
    def test_that_negative_search_does_not_return_results(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        search_page = home.search_for("frfx")
        Assert.equal(len(search_page.results), 0)
Пример #6
0
    def test_that_positive_search_returns_results(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        search_page = home.search_for("firefox")
        Assert.greater(len(search_page.results), 0)
Пример #7
0
    def test_that_negative_search_does_not_return_results(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        search_page = home.search_for('frfx')
        assert 0 == len(search_page.results), 'Search results found but none expected'
Пример #8
0
    def test_that_positive_search_returns_results(self, mozwebqa):
        home = PageProvider(mozwebqa).home_page()

        search_page = home.search_for('firefox')
        assert len(search_page.results) > 0, 'No search results found'