Selenium - fix transient error in history switching test.

History sometimes takes longer than that second to switch in the GUI, so start a retry cycle on that assertion after a half a second.

xref https://jenkins.galaxyproject.org/job/selenium/586/artifact/586-test-errors/test_history_switch2017092413201506273602/stacktrace.txt
This commit is contained in:
John Chilton
2017-09-24 17:00:43 -04:00
parent 6168e243b2
commit c90a84e1c2
+8 -3
View File
@@ -20,9 +20,14 @@ class SavedHistoriesTestCase(SharedStateSeleniumTestCase):
self._login()
self.navigate_to_saved_histories_page()
self.click_popup_option(self.history2_name, 'Switch')
time.sleep(1)
history_name = self.history_panel_name_element()
self.assertEqual(history_name.text, self.history2_name)
time.sleep(.5)
@retry_assertion_during_transitions
def assert_history_name_switched():
history_name = self.history_panel_name_element()
self.assertEqual(history_name.text, self.history2_name)
assert_history_name_switched()
@selenium_test
def test_history_view(self):