From b80216e2ef2d367e36334b16f4b48b7426f7613d Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Tue, 31 Oct 2023 22:34:30 -0500 Subject: [PATCH] update seleniums to work with new way of creating workflows --- lib/galaxy/selenium/navigates_galaxy.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index 806e8705a701..73de15c1bd16 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -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):