mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Selenium - attempted fix for transiently failing history options test.
Comments inline about this - but the target failure I'm hoping this fixes is: https://jenkins.galaxyproject.org/job/selenium/528/artifact/528-test-errors/test_options2017092203081506064101/stacktrace.txt
This commit is contained in:
@@ -819,6 +819,18 @@ class NavigatesGalaxy(HasDriver):
|
||||
self.click_center()
|
||||
return text
|
||||
|
||||
@retry_during_transitions
|
||||
def assert_selector_absent_or_hidden_after_transitions(self, selector):
|
||||
"""Variant of assert_selector_absent_or_hidden that retries during transitions.
|
||||
|
||||
In the parent method - the element is found and then it is checked to see
|
||||
if it is visible. It may disappear from the page in the middle there
|
||||
and cause a StaleElement error. For checks where we care about the final
|
||||
resting state after transitions - this method can be used to retry
|
||||
during those transitions.
|
||||
"""
|
||||
return self.assert_selector_absent_or_hidden(selector)
|
||||
|
||||
def assert_tooltip_text(self, element, expected, sleep=0, click_away=True):
|
||||
text = self.get_tooltip_text(element, sleep=sleep, click_away=click_away)
|
||||
assert text == expected, "Tooltip text [%s] was not expected text [%s]." % (text, expected)
|
||||
|
||||
@@ -27,4 +27,4 @@ class HistoryOptionsTestCase(SeleniumTestCase):
|
||||
|
||||
self.click_hda_title(hda_id, wait=True)
|
||||
|
||||
self.assert_selector_absent_or_hidden(hda_body_selector)
|
||||
self.assert_selector_absent_or_hidden_after_transitions(hda_body_selector)
|
||||
|
||||
Reference in New Issue
Block a user