Skip to content

Commit

Permalink
update seleniums to work with new way of creating workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Nov 1, 2023
1 parent 791ff6d commit b80216e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,13 +1516,16 @@ def workflow_create_new(self, annotation=None, clear_placeholder=False):
self.click_button_new_workflow()
self.sleep_for(self.wait_types.UX_RENDER)
name = self._get_random_name()
name_component = self.components.workflows.create.name
name_component = self.components.workflow_editor.edit_name
if clear_placeholder:
name_component.wait_for_visible().clear()
name_component.wait_for_and_send_keys(name)
annotation = annotation or self._get_random_name()
self.components.workflows.create.annotation.wait_for_and_send_keys(annotation)
self.components.workflows.create.submit.wait_for_and_click()
self.components.workflow_editor.edit_annotation.wait_for_and_send_keys(annotation)
save_button = self.components.workflow_editor.save_button
save_button.wait_for_visible()
assert not save_button.has_class("disabled")
save_button.wait_for_and_click()
return name

def invocation_index_table_elements(self):
Expand Down

0 comments on commit b80216e

Please sign in to comment.