diff --git a/client/src/components/License/LicenseSelector.vue b/client/src/components/License/LicenseSelector.vue index e6208be03f15..a9f55d621e1c 100644 --- a/client/src/components/License/LicenseSelector.vue +++ b/client/src/components/License/LicenseSelector.vue @@ -1,130 +1,112 @@ + + - - diff --git a/client/src/components/SchemaOrg/CreatorEditor.vue b/client/src/components/SchemaOrg/CreatorEditor.vue index 1310a1a2dfac..7a5c6882fc95 100644 --- a/client/src/components/SchemaOrg/CreatorEditor.vue +++ b/client/src/components/SchemaOrg/CreatorEditor.vue @@ -10,12 +10,24 @@
diff --git a/client/src/utils/navigation/navigation.yml b/client/src/utils/navigation/navigation.yml index e69d4072f86a..ebe847ba7639 100644 --- a/client/src/utils/navigation/navigation.yml +++ b/client/src/utils/navigation/navigation.yml @@ -747,15 +747,10 @@ workflow_editor: canvas_body: '#workflow-canvas' edit_annotation: '#workflow-annotation' edit_name: '#workflow-name' - license_selector: - selector: 'license selector' - type: data-description - edit_license_link: - selector: 'edit license link' - type: data-description - license_select: - selector: 'license select' - type: data-description + license_selector: '[data-description="license select"]' + license_current_value: '[data-description="license select"] .multiselect__single' + license_selector_input: '[data-description="license select"] input.multiselect__input' + license_selector_option: '[data-description="license select"] .multiselect__element' license_save: selector: 'license save' type: data-description diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index 555b12ea002c..3928e60b1483 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -1204,11 +1204,12 @@ def rule_builder_enter_source_text(self, json): text_area_elem.send_keys(json) def workflow_editor_set_license(self, license: str) -> None: - editor = self.components.workflow_editor - editor.edit_license_link.wait_for_and_click() - select = editor.license_select.wait_for_select() - select.select_by_value(license) - editor.license_save.wait_for_and_click() + license_selector = self.components.workflow_editor.license_selector + license_selector.wait_for_and_click() + license_selector.wait_for_and_send_keys(license) + + license_selector_option = self.components.workflow_editor.license_selector_option + license_selector_option.wait_for_and_click() def workflow_editor_click_option(self, option_label): self.workflow_editor_click_options() diff --git a/lib/galaxy_test/selenium/test_workflow_editor.py b/lib/galaxy_test/selenium/test_workflow_editor.py index 114e5101fcba..af8ba29fbc53 100644 --- a/lib/galaxy_test/selenium/test_workflow_editor.py +++ b/lib/galaxy_test/selenium/test_workflow_editor.py @@ -100,15 +100,14 @@ def test_edit_license(self): name = self.workflow_create_new() editor.canvas_body.wait_for_visible() editor.license_selector.wait_for_visible() - editor.license_selector.assert_no_axe_violations_with_impact_of_at_least("serious") - editor.license_selector.assert_data_value("license", "null") + assert "Do not specify" in editor.license_current_value.wait_for_text() self.workflow_editor_set_license("MIT") self.workflow_editor_click_save() self.workflow_index_open_with_name(name) editor.license_selector.wait_for_visible() - editor.license_selector.assert_data_value("license", "MIT") + assert "MIT" in editor.license_current_value.wait_for_text() @selenium_test def test_optional_select_data_field(self):