Add workflow bookmarking selenium test

This commit is contained in:
davelopez
2025-05-21 16:39:00 +02:00
parent 9efa46ba56
commit 46168bfa5a
2 changed files with 26 additions and 0 deletions
+4
View File
@@ -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)
@@ -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)