Ejemplo n.º 1
0
    def test_search_tag(self, mozwebqa):
        community_page = CommunityPage(mozwebqa)
        community_page.go_to_community_page()

        tag_results_page = community_page.click_first_tag_link

        Assert.contains('Posts and pages tagged', tag_results_page.page_title)
        Assert.greater(len(tag_results_page.results), 0)
Ejemplo n.º 2
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)
Ejemplo n.º 3
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)
Ejemplo n.º 4
0
 def click_community_link(self):
     self.find_element(*self._community_link_locator).click()
     from pages.community import CommunityPage
     return CommunityPage(self.testsetup)