From 095307b6783f39bce7a1f4c6fbb4e603e368ecfb Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 20 Sep 2017 13:35:02 -0400 Subject: [PATCH] Selenium fixes for publishing histories button. Fixes https://jenkins.galaxyproject.org/job/selenium/488/testReport/junit/selenium_tests.test_published_histories_grid/HistoryGridTestCase/test_history_grid_histories/. It looks like a Toastr popup sometimes intercepts the click, this should solve that I believe. --- test/selenium_tests/test_published_histories_grid.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/selenium_tests/test_published_histories_grid.py b/test/selenium_tests/test_published_histories_grid.py index a6b610118c1..9937a19e602 100644 --- a/test/selenium_tests/test_published_histories_grid.py +++ b/test/selenium_tests/test_published_histories_grid.py @@ -155,8 +155,7 @@ class HistoryGridTestCase(SharedStateSeleniumTestCase): def unset_filter(self, filter_key, filter_value): close_link_selector = 'a[filter_key="%s"][filter_val="%s"]' % \ (filter_key, filter_value) - close_link = self.wait_for_selector_clickable(close_link_selector) - close_link.click() + self.wait_for_and_click_selector(close_link_selector) time.sleep(.5) def set_annotation(self, annotation): @@ -219,10 +218,7 @@ class HistoryGridTestCase(SharedStateSeleniumTestCase): def publish_current_history(self): self.click_history_option('Share or Publish') with self.main_panel(): - selector = 'input[name="make_accessible_and_publish"]' - publish_button = self.wait_for_selector_clickable(selector) - publish_button.click() - + self.wait_for_and_click_selector('input[name="make_accessible_and_publish"]') self.wait_for_selector_clickable('input[name="disable_link_access_and_unpublish"]') def navigate_to_published_histories_page(self):