diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index fc4d4caae9fa..9791c999cb45 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -153,8 +153,11 @@ def _retry(*args, **kwds): return _retry -def retry_index_during_transitions(e): - exception_check = exception_seems_to_indicate_transition(e) or isinstance(e, IndexError) +def retry_index_during_transitions(): + + def exception_check(e): + return exception_seems_to_indicate_transition(e) or isinstance(e, IndexError) + return partial(retry_during_transitions, exception_check=exception_check) @@ -1426,7 +1429,8 @@ def workflow_card_elements(self): return self.components.workflows.workflow_card.all() def workflow_card_element(self, workflow_index=0): - @retry_index_during_transitions + + @retry_index_during_transitions() def fetch(): return self.workflow_card_elements()[workflow_index]