From 9260b8181b06910a405ef23a214bc9d4b5331d5c Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Tue, 10 Dec 2024 09:32:40 -0600 Subject: [PATCH 1/7] [24.2] Fix inconsistent tab handling in invocation view Fixes https://github.com/galaxyproject/galaxy/issues/19286 --- .../WorkflowInvocationState.vue | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue index 83248eec6e61..8c59c416c789 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue @@ -67,22 +67,22 @@ watch( ); const workflowStore = useWorkflowStore(); -const reportTabDisabled = computed( +const tabsDisabled = computed( () => !invocationStateSuccess.value || !invocation.value || !workflowStore.getStoredWorkflowByInstanceId(invocation.value.workflow_id) ); -/** Tooltip message for the report tab when it is disabled */ -const disabledReportTooltip = computed(() => { +/** Tooltip message for the a tab when it is disabled */ +const disabledTabTooltip = computed(() => { const state = invocationState.value; if (state != "scheduled") { return `This workflow is not currently scheduled. The current state is ${state}. Once the workflow is fully scheduled and jobs have complete this option will become available.`; } else if (runningCount.value != 0) { return `The workflow invocation still contains ${runningCount.value} running job(s). Once these jobs have completed this option will become available.`; } else { - return "Steps for this workflow are still running. A report will be available once complete."; + return "Steps for this workflow are still running. This option will be available once complete."; } }); @@ -333,22 +333,32 @@ async function onCancel() { - + +
@@ -387,7 +397,8 @@ async function onCancel() { From eade161ca221e5f99ea22ef636f351a5d5954538 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Tue, 10 Dec 2024 19:01:52 -0600 Subject: [PATCH 7/7] fix seleniums to wait for disabled tabs in invocation view --- lib/galaxy_test/selenium/test_workflow_run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy_test/selenium/test_workflow_run.py b/lib/galaxy_test/selenium/test_workflow_run.py index c47b835f47c3..36a4a60af080 100644 --- a/lib/galaxy_test/selenium/test_workflow_run.py +++ b/lib/galaxy_test/selenium/test_workflow_run.py @@ -37,6 +37,7 @@ class TestWorkflowRun(SeleniumTestCase, UsesHistoryItemAssertions, RunsWorkflows def test_workflow_export_file_rocrate(self): self._setup_simple_invocation_for_export_testing() invocations = self.components.invocations + self.workflow_run_wait_for_ok(hid=2) invocations.export_tab.wait_for_and_click() self.screenshot("invocation_export_formats") invocations.export_output_format(type="ro-crate").wait_for_and_click() @@ -60,6 +61,7 @@ def test_workflow_export_file_rocrate(self): def test_workflow_export_file_native(self): self._setup_simple_invocation_for_export_testing() invocations = self.components.invocations + self.workflow_run_wait_for_ok(hid=2) invocations.export_tab.wait_for_and_click() self.screenshot("invocation_export_formats") invocations.export_output_format(type="default-file").wait_for_and_click()