mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user