Skip to content

Commit

Permalink
Potential selenium fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Apr 27, 2024
1 parent 9e9f69c commit 4cd4aab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down Expand Up @@ -1421,7 +1426,11 @@ def workflow_card_elements(self):
return self.components.workflows.workflow_card.all()

def workflow_card_element(self, workflow_index=0):
return self.workflow_card_elements()[workflow_index]
@retry_index_during_transitions
def fetch():
return self.workflow_card_elements()[workflow_index]

return fetch()

@retry_during_transitions
def workflow_index_column_text(self, column_index, workflow_index=0):
Expand Down

0 comments on commit 4cd4aab

Please sign in to comment.