Skip to content

Commit

Permalink
Fix workflow bookmarking test
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed May 28, 2024
1 parent d31161a commit ba9a87d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/galaxy_test/selenium/test_workflow_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,22 +899,18 @@ def assert_workflow_bookmarked_status(target_status):
assert status == target_status

new_workflow_name = self.workflow_create_new(clear_placeholder=True)
self.components.workflow_editor.canvas_body.wait_for_visible()
self.wait_for_selector_absent_or_hidden(self.modal_body_selector())

# Assert workflow not initially bookmarked.
self.navigate_to_tools()
assert_workflow_bookmarked_status(False)

self.components.workflow_editor.canvas_body.wait_for_visible()
self.wait_for_selector_absent_or_hidden(self.modal_body_selector())
self.components.masthead.workflow.wait_for_and_click()

self.sleep_for(self.wait_types.UX_RENDER)
self.click_activity_workflow()
self.components.workflows.bookmark_link(action="add").wait_for_and_click()
self.components.masthead.workflow.wait_for_and_click()
self.sleep_for(self.wait_types.UX_TRANSITION)

# search for bookmark in tools menu
self.components.tool_panel.search.wait_for_and_send_keys(new_workflow_name)
self.sleep_for(self.wait_types.UX_RENDER)
self.navigate_to_tools()
assert_workflow_bookmarked_status(True)

def tab_to(self, accessible_name, direction="forward"):
Expand Down

0 comments on commit ba9a87d

Please sign in to comment.