mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
The ``with self.main_panel():`` construct wasn't cleaning up properly - I've fixed this and eliminated the terrible workarounds in the execution test case that I guess I had added trying to figure out how to make things work. It should be more stable now. (This test case has been failing 1 out 9 times I'd say.)
48 lines
1.4 KiB
Python
48 lines
1.4 KiB
Python
import time
|
|
|
|
from .framework import (
|
|
selenium_test,
|
|
SeleniumTestCase,
|
|
UsesHistoryItemAssertions,
|
|
)
|
|
|
|
from ._workflow_fixtures import (
|
|
WORKFLOW_SIMPLE_CAT_TWICE,
|
|
WORKFLOW_WITH_OLD_TOOL_VERSION,
|
|
)
|
|
|
|
|
|
class WorkflowRunTestCase(SeleniumTestCase, UsesHistoryItemAssertions):
|
|
|
|
ensure_registered = True
|
|
|
|
@selenium_test
|
|
def test_simple_execution(self):
|
|
self.perform_upload(self.get_filename("1.fasta"))
|
|
self.wait_for_history()
|
|
|
|
workflow_populator = self.workflow_populator
|
|
workflow_populator.upload_yaml_workflow(WORKFLOW_SIMPLE_CAT_TWICE)
|
|
self.workflow_index_open()
|
|
self.workflow_index_click_option("Run")
|
|
|
|
with self.main_panel():
|
|
self.workflow_run_submit()
|
|
|
|
self.history_panel_wait_for_hid_ok(2)
|
|
self.history_panel_wait_for_hid_ok(3)
|
|
self.history_panel_click_item_title(hid=2, wait=True)
|
|
self.assert_item_summary_includes(2, "2 sequences")
|
|
|
|
@selenium_test
|
|
def test_execution_with_tool_upgrade(self):
|
|
workflow_populator = self.workflow_populator
|
|
workflow_populator.upload_yaml_workflow(WORKFLOW_WITH_OLD_TOOL_VERSION, exact_tools=True)
|
|
|
|
self.workflow_index_open()
|
|
self.workflow_index_click_option("Run")
|
|
time.sleep(.5)
|
|
with self.main_panel():
|
|
# Check that this tool form contains a warning about different versions.
|
|
self.assert_warning_message(contains="different versions")
|