Permalink
Browse files

Fixed community page method for getting to Tag Results.

  • Loading branch information...
1 parent 2e22ada commit de8f19a8e578f290460eea9567d7058c70078fe6 Rebecca Billings committed Sep 18, 2012
Showing with 6 additions and 5 deletions.
  1. +4 −2 pages/community.py
  2. +2 −3 tests/test_tag_search.py
View
@@ -19,5 +19,7 @@ def go_to_community_page(self):
self.is_the_current_page
@property
- def find_tag_link(self):
- return self.selenium.find_element(*self._tag_locator)
+ def click_first_tag_link(self):
+ self.selenium.find_element(*self._tag_locator).click()
+ from pages.tag_results import TagResultsPage
+ return TagResultsPage(self.testsetup)
View
@@ -18,7 +18,6 @@ def test_search_tag(self, mozwebqa):
community_page = CommunityPage(mozwebqa)
community_page.go_to_community_page()
- tag_results_page = community_page.find_tag_link.click()
+ tag_results_page = community_page.click_first_tag_link
- Assert.contains(tag_results_page._page_title)
- #Assert.greater(len(tag_results_page.results), 0)
+ Assert.greater(len(tag_results_page.results), 0)

0 comments on commit de8f19a

Please sign in to comment.