Skip to content

Commit

Permalink
Assert that connections are invalid, instead of auto-destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jan 20, 2023
1 parent 41d82e5 commit 2e909a4
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 @@ -643,6 +643,7 @@ workflow_editor:
//div[@data-label='Remove Tags']//input
tool_version_button: ".tool-versions"
connector_for: "#connection-${sink_id}-${source_id}"
connector_invalid_for: "#connection-${sink_id}-${source_id} .ribbon-inner-invalid"
connector_destroy_callout: '.delete-terminal'
save_button: '.editor-button-save'
state_modal_body: '.state-upgrade-modal'
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 @@ -557,7 +557,7 @@ def test_change_datatype(self):
editor.select_datatype_text_search.wait_for_and_send_keys("bam")
editor.select_datatype(datatype="bam").wait_for_and_click()
editor.node.output_data_row(output_name="out_file1", extension="bam").wait_for_visible()
self.assert_not_connected("create_2#out_file1", "checksum#input")
self.assert_connection_invalid("create_2#out_file1", "checksum#input")

@selenium_test
def test_change_datatype_post_job_action_lost_regression(self):
Expand Down Expand Up @@ -862,6 +862,10 @@ def assert_connected(self, source, sink):
source_id, sink_id = self.workflow_editor_source_sink_terminal_ids(source, sink)
self.components.workflow_editor.connector_for(source_id=source_id, sink_id=sink_id).wait_for_visible()

def assert_connection_invalid(self, source, sink):
source_id, sink_id = self.workflow_editor_source_sink_terminal_ids(source, sink)
self.components.workflow_editor.connector_invalid_for(source_id=source_id, sink_id=sink_id).wait_for_present()

def assert_not_connected(self, source, sink):
source_id, sink_id = self.workflow_editor_source_sink_terminal_ids(source, sink)
self.components.workflow_editor.connector_for(source_id=source_id, sink_id=sink_id).wait_for_absent()
Expand Down

0 comments on commit 2e909a4

Please sign in to comment.