Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated search selector, removed unneeded assert and fixed the type i…

…n search field method.
  • Loading branch information...
commit 4972181d01bc8b71b7d109980c0201dd5cc5f2dd 1 parent 7152021
Rebecca Billings authored
Showing with 2 additions and 3 deletions.
  1. +1 −1  pages/regions/header.py
  2. +1 −2  tests/test_search_results.py
View
2  pages/regions/header.py
@@ -15,7 +15,7 @@ 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')
_search_button_locator = (By.CSS_SELECTOR, '#search button')
- _search_field_locator = (By.CSS_SELECTOR, '#search')
+ _search_field_locator = (By.CSS_SELECTOR, '#search input#s')
def click_community_link(self):
self.selenium.find_element(*self._community_link_locator).click()
View
3  tests/test_search_results.py
@@ -27,9 +27,8 @@ def test_search_results_returned(self,mozwebqa):
home_page = HomePage(mozwebqa)
home_page.go_to_home_page()
- search_results_page = home_page.header_region.type_in_search_field('job board')
+ home_page.header_region.type_in_search_field('job board')
search_results_page = home_page.header_region.click_search_button()
expected_text= "Search results"
Assert.contains(expected_text, search_results_page._page_title)
- Assert.true(search_results_page.get_url_current_page().endswith('/?s='))
Please sign in to comment.
Something went wrong with that request. Please try again.