From 36c1639ab63b9c61f1348d3e88b6454db1b7b0ea Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Fri, 3 Nov 2023 19:14:46 -0500 Subject: [PATCH] selenium add render wait to wait for window location change also fix jest for wf editor attributes by specifying version prop --- client/src/components/Workflow/Editor/Attributes.test.js | 1 + lib/galaxy/selenium/navigates_galaxy.py | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/components/Workflow/Editor/Attributes.test.js b/client/src/components/Workflow/Editor/Attributes.test.js index 6bf6ae3ee4f9..544cbe7281d3 100644 --- a/client/src/components/Workflow/Editor/Attributes.test.js +++ b/client/src/components/Workflow/Editor/Attributes.test.js @@ -33,6 +33,7 @@ describe("Attributes", () => { name: TEST_NAME, tags: ["workflow_tag_0", "workflow_tag_1"], parameters: untypedParameters, + version: 0, versions: TEST_VERSIONS, annotation: TEST_ANNOTATION, }, diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index 73de15c1bd16..d3f0c272fae4 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -1526,6 +1526,7 @@ def workflow_create_new(self, annotation=None, clear_placeholder=False): save_button.wait_for_visible() assert not save_button.has_class("disabled") save_button.wait_for_and_click() + self.sleep_for(self.wait_types.UX_RENDER) return name def invocation_index_table_elements(self):