Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed failing test in moztrap-dev #85

Merged
merged 1 commit into from

2 participants

@AlinT

No description provided.

@teodosia
Collaborator

Lgtm and all tests pass.

@teodosia
Collaborator

Merging this.

@teodosia teodosia merged commit c406a88 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 5, 2012
  1. @AlinT
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  pages/manage_products_page.py
View
2  pages/manage_products_page.py
@@ -19,6 +19,7 @@ class MozTrapManageProductsPage(MozTrapBasePage):
_filter_suggestion_locator = (By.CSS_SELECTOR, '#filter .textual .suggest .suggestion[data-type="name"][data-name="%(filter_name)s"]')
_filter_locator = (By.CSS_SELECTOR, '#filterform .filter-group input[data-name="name"][value="%(filter_name)s"]:checked')
_filter_remove_locator = (By.XPATH, '//label[@class="onoffswitch"][text()="%(filter_name)s"]')
+ _suggestion_dropdown_locator = (By.CSS_SELECTOR, ".textual .suggest li a")
def go_to_manage_products_page(self):
self.get_relative_path('/manage/products/')
@@ -45,6 +46,7 @@ def filter_products_by_name_without_mouse(self, name):
filter_input_locator = self.selenium.find_element(*self._filter_input_locator)
filter_input_locator.send_keys(name)
+ WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_visible(*self._suggestion_dropdown_locator))
filter_input_locator.send_keys(Keys.RETURN)
WebDriverWait(self.selenium, self.timeout).until(lambda s: self.is_element_visible(*_filter_locator))
self.wait_for_ajax()
Something went wrong with that request. Please try again.