Skip to content

Commit

Permalink
Try a couple of more element visibility tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rmol authored and redshiftzero committed May 11, 2019
1 parent edc85e5 commit a0bc7e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop/tests/functional/functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ def safe_click_all_by_css_selector(self, selector, root=None):
root = self.driver
els = self.wait_for(lambda: root.find_elements_by_css_selector(selector))
for el in els:
self.wait_for(lambda: el.is_enabled() and el.is_displayed())
el.location_once_scrolled_into_view
self.wait_for(lambda: el.is_enabled() and el.is_displayed())
ActionChains(self.driver).move_to_element(el).click().perform()

def _alert_wait(self, timeout=None):
Expand Down
1 change: 1 addition & 0 deletions securedrop/tests/functional/source_navigation_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def _source_deletes_a_journalist_reply(self):
def confirm_displayed():
confirm_button_id = "confirm-delete-reply-button-{}".format(reply_filename)
confirm_button = self.driver.find_element_by_id(confirm_button_id)
confirm_button.location_once_scrolled_into_view
assert confirm_button.is_displayed()

self.wait_for(confirm_displayed)
Expand Down

0 comments on commit a0bc7e2

Please sign in to comment.