Permalink
Browse files

Changed link names back

  • Loading branch information...
1 parent 4b22cca commit cf8d9a7365c0aa42805851479334a0bf9535c259 @rbillings rbillings committed Apr 27, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 pages/regions/header.py
  2. +1 −1 tests/test_docs.py
  3. +1 −1 tests/test_media.py
View
@@ -14,12 +14,12 @@ class HeaderRegion(Page):
_media_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(5) a')
_docs_link_locator = (By.CSS_SELECTOR, '#nav-main li:nth-child(6) a')
- def go_to_media_page(self):
+ def click_media_link(self):
self.selenium.find_element(*self._media_link_locator).click()
from pages.media import MediaPage
return MediaPage(self.testsetup)
- def go_to_docs_page(self):
+ def click_docs_link(self):
self.selenium.find_element(*self._docs_link_locator).click()
from pages.docs import DocsPage
return DocsPage(self.testsetup)
View
@@ -15,5 +15,5 @@ class TestDocsPage:
def test_docs_title(self, mozwebqa):
home_page = HomePage(mozwebqa)
home_page.go_to_home_page()
- docs_page = home_page.header_region.go_to_docs_page()
+ docs_page = home_page.header_region.click_docs_link()
Assert.true(docs_page.is_the_current_page)
View
@@ -15,5 +15,5 @@ class TestMediaPage:
def test_media_title(self, mozwebqa):
home_page = HomePage(mozwebqa)
home_page.go_to_home_page()
- media_page = home_page.header_region.go_to_media_page()
+ media_page = home_page.header_region.click_media_link()
Assert.true(media_page.is_the_current_page)

0 comments on commit cf8d9a7

Please sign in to comment.