mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-13 00:44:55 +08:00
Workflow deletion selenium tests.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user