Exemple #1
0
    def test_that_search_by_tag_works(self, mozwebqa):
        tag_name = u'firefox'
        community_page = CommunityPage(mozwebqa)
        community_page.go_to_community_page()
        tag_results_page = community_page.click_tag_link(tag_name)

        Assert.true(tag_results_page.is_the_current_page)
        Assert.equal(u'Posts and pages tagged “%s”' % tag_name,
                     tag_results_page.page_title)

        found_articles = tag_results_page.results
        Assert.greater(len(found_articles), 0)

        for article in found_articles:
            Assert.contains(tag_name, article.related_tags)
Exemple #2
0
 def click_community_link(self):
     self.find_element(*self._community_link_locator).click()
     from pages.community import CommunityPage
     return CommunityPage(self.testsetup)