diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index de765d0375fe..53dfd5edf183 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -153,6 +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) + return partial(retry_during_transitions, exception_check=exception_check) + + def edit_details(f, scope=".history-index"): """Open the editor, run the edits, hit the save button""" @@ -1420,6 +1425,7 @@ def workflow_card_elements(self): self.components.workflows.workflow_cards.wait_for_visible() return self.components.workflows.workflow_card.all() + @retry_index_during_transitions def workflow_card_element(self, workflow_index=0): return self.workflow_card_elements()[workflow_index]