From f5b1e96bf8b7f5061a50a1d7989db99bf66ff0b1 Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 27 May 2024 10:53:52 +0300 Subject: [PATCH] Preliminary adjustment of workflow run selenium test --- client/src/utils/navigation/navigation.yml | 1 + lib/galaxy/selenium/navigates_galaxy.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/utils/navigation/navigation.yml b/client/src/utils/navigation/navigation.yml index ecf3047a9c0..46534bfffcb 100644 --- a/client/src/utils/navigation/navigation.yml +++ b/client/src/utils/navigation/navigation.yml @@ -600,6 +600,7 @@ tool_form: workflows: selectors: + activity: '#activity-workflows' shared_with_me_tab: '#shared-with-me' published_tab: '#published a' new_button: '#workflow-create' diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index cfb53b38bf7..9d69c5c1b6b 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -784,7 +784,7 @@ class NavigatesGalaxy(HasDriver): self.assert_error_message() elif assert_valid: self.wait_for_logged_in() - + ''' # Code below previously was needed because there was a bug that would prevent the masthead from changing, # the bug seems maybe to be fixed though - so we could consider eliminating these extra checks to speed # up tests. @@ -808,7 +808,7 @@ class NavigatesGalaxy(HasDriver): assert user_object["email"] == email # clicking away no longer closes menu post Masthead -> VueJS - self.click_masthead_user() + self.click_masthead_user()''' def wait_for_logged_in(self): try: @@ -1478,7 +1478,7 @@ class NavigatesGalaxy(HasDriver): def workflow_index_open(self): self.home() - self.click_masthead_workflow() + self.click_activity_workflow() def workflow_shared_with_me_open(self): self.workflow_index_open() @@ -1744,8 +1744,8 @@ class NavigatesGalaxy(HasDriver): def click_masthead_data(self): self.components.masthead.data.wait_for_and_click() - def click_masthead_workflow(self): - self.components.masthead.workflow.wait_for_and_click() + def click_activity_workflow(self): + self.components.workflows.activity.wait_for_and_click() def click_button_new_workflow(self): self.wait_for_and_click(self.navigation.workflows.selectors.new_button)