Skip to content

Commit

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


Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 303158e

Please sign in to comment.