Workflow deletion selenium tests.

This commit is contained in:
John Chilton
2022-06-01 16:27:13 -04:00
parent 23a21340bf
commit c2e350a804
2 changed files with 20 additions and 0 deletions
+7
View File
@@ -234,6 +234,13 @@ class HasDriver:
stacktrace=timeout_exception.stacktrace,
)
def accept_alert(self):
try:
alert = self.driver.switch_to.alert
alert.accept()
finally:
self.driver.switch_to.default_content()
def exception_indicates_click_intercepted(exception):
return "click intercepted" in str(exception)
@@ -149,6 +149,19 @@ class WorkflowManagementTestCase(SeleniumTestCase, TestsGalaxyPagers, UsesWorkfl
self._assert_showing_n_workflows(0)
self.screenshot("workflow_manage_search_name_alias")
@selenium_test
def test_workflow_delete(self):
self.workflow_index_open()
self._workflow_import_from_url()
self.workflow_index_rename("fordelete")
self._assert_showing_n_workflows(1)
self.workflow_index_click_option("Delete")
self.accept_alert()
self._assert_showing_n_workflows(0)
self.workflow_index_open()
self._assert_showing_n_workflows(0)
@selenium_test
def test_pagination(self):
self.workflow_index_open()