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!')
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!')
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)
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)
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'
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'