Skip to content

Commit

Permalink
Adds 'Save As' option to workflow editor toolbar
Browse files Browse the repository at this point in the history
Includes a new selector for the 'Save As' option in the navigation configuration.
Updates the Selenium test to handle the 'Save As' option visibility and interaction.

Improves user experience by ensuring the 'Save As' option is accessible and testable.
  • Loading branch information
itisAliRH committed Nov 19, 2024
1 parent acfa427 commit 4ce4e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/src/utils/navigation/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ workflow_editor:
duplicate_selection: "[title='duplicate selected']"
delete_selection: "[title='delete selected']"
auto_layout: "#auto-layout-button"
option_save_as: ".activity-settings-item[contains(text(), 'Save as')]"
comment:
selectors:
_: ".workflow-editor-comment"
Expand Down
6 changes: 5 additions & 1 deletion lib/galaxy_test/selenium/test_workflow_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,11 @@ def test_save_as(self):
self.workflow_index_open_with_name(name)
self.sleep_for(self.wait_types.UX_RENDER)
self.screenshot("workflow_editor_edit_menu")
self.workflow_editor_click_option("Save As")

if self.element_absent(self.components.workflow_editor.tool_bar.option_save_as):
self.components.preferences.activity.wait_for_and_click()

self.components.workflow_editor.tool_bar.option_save_as.wait_for_and_click()

@selenium_test
def test_editor_tool_upgrade(self):
Expand Down

0 comments on commit 4ce4e6a

Please sign in to comment.