diff --git a/lib/galaxy/selenium/navigates_galaxy.py b/lib/galaxy/selenium/navigates_galaxy.py index 25bf2fbb320..b3f450b4689 100644 --- a/lib/galaxy/selenium/navigates_galaxy.py +++ b/lib/galaxy/selenium/navigates_galaxy.py @@ -1602,6 +1602,10 @@ class NavigatesGalaxy(HasDriver): self.sleep_for(self.wait_types.UX_RENDER) self.components._.confirm_button(name="Delete").wait_for_and_click() + def workflow_bookmark_by_name(self, name): + self.workflow_index_search_for(name) + self.components.workflows.bookmark_link(action="add").wait_for_and_click() + @retry_during_transitions def workflow_index_name(self, workflow_index=0): workflow = self.workflow_card_element(workflow_index=workflow_index) diff --git a/lib/galaxy_test/selenium/test_workflow_management.py b/lib/galaxy_test/selenium/test_workflow_management.py index 965620dfbd9..fcd1ddcdacd 100644 --- a/lib/galaxy_test/selenium/test_workflow_management.py +++ b/lib/galaxy_test/selenium/test_workflow_management.py @@ -210,3 +210,25 @@ class TestWorkflowManagement(SeleniumTestCase, TestsGalaxyPagers, UsesWorkflowAs self.workflow_index_open() self.components.workflows.workflows_list_empty.wait_for_visible() + + @selenium_test + def test_workflow_bookmark_filtering(self): + self.workflow_index_open() + # Import 2 workflows + self._workflow_import_from_url() + self._workflow_import_from_url() + self._assert_showing_n_workflows(2) + # Rename and bookmark one + self.workflow_rename("forbookmark") + self.workflow_bookmark_by_name("forbookmark") + + # Filter by bookmark + self.workflow_index_search_for("is:bookmarked") + self._assert_showing_n_workflows(1) + self.screenshot("workflow_manage_bookmark_search") + + # clear filter + self.components.workflows.clear_filter.wait_for_and_click() + curr_value = self.workflow_index_get_current_filter() + assert curr_value == "", curr_value + self._assert_showing_n_workflows(2)