Permalink
Browse files

Edited base.py and tag_search_results. Test still fails for me- but n…

…ot for others and afaict this is the correct code.
  • Loading branch information...
1 parent de8f19a commit 7d7b9d950362d1fbc3a6b44ce808caf3466e4f1b Rebecca Billings committed Oct 11, 2012
Showing with 2 additions and 11 deletions.
  1. +1 −1 pages/base.py
  2. +0 −10 pages/tag_results.py
  3. +1 −0 tests/test_tag_search.py
View
@@ -11,7 +11,7 @@
class BasePage(Page):
- _page_title_locator = (By.CSS_SELECTOR, "h1.page-title")
+ _page_title_locator = (By.CSS_SELECTOR, "h1.section-title")
@property
def is_logged_in(self):
View
@@ -11,16 +11,6 @@
class TagResultsPage(BasePage):
- _page_title = u'Posts tagged'
-
- def tag_results_page(self):
- self.selenium.get(self.testsetup.base_url + '/tag/a11y/')
- self.is_the_current_page
-
- @property
- def is_page_title_correct(self):
- return self.selenium.get_title() == self._page_title
-
@property
def results(self):
return self.selenium.find_elements(By.CSS_SELECTOR, "#content-main > article")
View
@@ -20,4 +20,5 @@ def test_search_tag(self, mozwebqa):
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)

0 comments on commit 7d7b9d9

Please sign in to comment.