mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Add workflow bookmarking selenium test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user