diff --git a/client/src/components/History/SwitchToHistoryLink.vue b/client/src/components/History/SwitchToHistoryLink.vue
index 58dca75e389e..a8e23b33fa4c 100644
--- a/client/src/components/History/SwitchToHistoryLink.vue
+++ b/client/src/components/History/SwitchToHistoryLink.vue
@@ -47,7 +47,18 @@ const actionText = computed(() => {
return "View in new tab";
});
+const linkTitle = computed(() => {
+ if (historyStore.currentHistoryId === props.historyId) {
+ return "This is your current history";
+ } else {
+ return `${actionText.value}
${history.value?.name}`;
+ }
+});
+
async function onClick(history: HistorySummary) {
+ if (historyStore.currentHistoryId === history.id) {
+ return;
+ }
if (canSwitch.value) {
if (props.filters) {
historyStore.applyFilters(history.id, props.filters);
@@ -75,9 +86,10 @@ function viewHistoryInNewTab(history: HistorySummary) {
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.vue
index 86098f1212b0..dbb700f80d4a 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationHeader.vue
@@ -7,6 +7,7 @@ import { computed } from "vue";
import type { InvocationJobsSummary, InvocationStep, WorkflowInvocationElementView } from "@/api/invocations";
import { useWorkflowInstance } from "@/composables/useWorkflowInstance";
+import { useHistoryStore } from "@/stores/historyStore";
import localize from "@/utils/localization";
import {
@@ -131,8 +132,9 @@ const jobStatesStr = computed(() => {
History:
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue
index 6b30bcb64d87..b0cd2c027f29 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue
@@ -169,7 +169,7 @@ function cancelWorkflowSchedulingLocal() {
-
+
0
return invocation_rows[0]
assert_has_row()
invocations.state_details.assert_absent()
- invocations.toggle_invocation_details.wait_for_visible()
- details = invocations.toggle_invocation_details.all()[0]
+ details = invocations.invocations_panel_list_items.all()[0]
details.click()
invocations.state_details.wait_for_visible()
+ # close invocations panel
+ gx_selenium_context.components.invocations.activity.wait_for_and_click()
+
@retry_assertion_during_transitions
def assert_progress_steps_note_contains(text):
assert text in invocations.progress_steps_note.wait_for_visible().text
@@ -46,23 +52,16 @@ def assert_progress_steps_note_contains(text):
invocations.input_details_title(label="text_input").wait_for_visible()
assert "Test_Dataset" in invocations.input_details_name(label="text_input").wait_for_visible().text
- invocations.invocation_tab(label="Overview").wait_for_and_click()
- invocations.hide_invocation_graph.wait_for_and_click()
+ invocations.invocation_tab(label="Steps").wait_for_and_click()
assert "Step 1: text_input" in invocations.step_title(order_index="0").wait_for_visible().text
assert "Step 2: split_up" in invocations.step_title(order_index="1").wait_for_visible().text
assert "Step 3: paired" in invocations.step_title(order_index="2").wait_for_visible().text
invocations.step_details(order_index="1").wait_for_and_click()
- invocations.step_job_details(order_index="1").wait_for_and_click()
- invocations.step_job_table(order_index="1").wait_for_visible()
- invocations.step_job_table_rows(order_index="1").wait_for_visible()
- job_rows = invocations.step_job_table_rows(order_index="1").all()
- assert len(job_rows) == 1
-
- invocations.step_job_information(order_index="1").assert_absent()
- job_rows[0].click()
+ invocations.step_job_details(order_index="1").wait_for_visible()
+
self.sleep_for(self.wait_types.UX_RENDER)
- self.screenshot("invocations_job_table")
+ self.screenshot("invocation_step_jobs")
invocations.step_job_information(order_index="1").wait_for_visible()
assert (
@@ -70,7 +69,7 @@ def assert_progress_steps_note_contains(text):
in invocations.step_job_information_tool_id(order_index="1").wait_for_visible().text
)
- invocations.step_output_collection(order_index="1").wait_for_and_click()
+ invocations.step_output_collection(order_index="1").wait_for_visible()
invocations.step_output_collection_toggle(order_index="1").wait_for_and_click()
invocations.step_output_collection_element_identifier(element_identifier="forward").wait_for_and_click()
datatype = invocations.step_output_collection_element_datatype(order_index="1").wait_for_text()
diff --git a/test/integration_selenium/test_workflow_run_target.py b/test/integration_selenium/test_workflow_run_target.py
index b078d3e0de7a..1e47aee98d30 100644
--- a/test/integration_selenium/test_workflow_run_target.py
+++ b/test/integration_selenium/test_workflow_run_target.py
@@ -38,9 +38,10 @@ def test_execution_to_new_history(self):
workflow_run.expanded_form.wait_for_absent_or_hidden()
self.workflow_run_submit()
self.sleep_for(self.wait_types.UX_TRANSITION)
- workflow_run.new_history_target_link.wait_for_and_click()
+ workflow_run.new_history_badge.wait_for_visible()
+ workflow_run.history_target_link.wait_for_and_click()
self.sleep_for(self.wait_types.UX_TRANSITION)
- workflow_run.new_history_target_link.wait_for_absent_or_hidden()
+ workflow_run.new_history_badge.wait_for_absent_or_hidden()
self.workflow_run_wait_for_ok(hid=2, expand=True)
self.assert_item_summary_includes(2, "2 sequences")
@@ -63,7 +64,7 @@ def test_execution_in_current_history(self):
workflow_run.expanded_form.wait_for_absent_or_hidden()
self.workflow_run_submit()
self.sleep_for(self.wait_types.UX_TRANSITION)
- workflow_run.new_history_target_link.wait_for_absent_or_hidden()
+ workflow_run.new_history_badge.wait_for_absent_or_hidden()
self.sleep_for(self.wait_types.UX_TRANSITION)
self.workflow_run_wait_for_ok(hid=2, expand=True)
self.assert_item_summary_includes(2, "2 sequences")
@@ -92,8 +93,9 @@ def test_execution_in_current_history(self):
workflow_run.runtime_setting_target.wait_for_absent_or_hidden()
self.workflow_run_submit()
self.sleep_for(self.wait_types.UX_TRANSITION)
- workflow_run.new_history_target_link.wait_for_and_click()
+ workflow_run.new_history_badge.wait_for_visible()
+ workflow_run.history_target_link.wait_for_and_click()
self.sleep_for(self.wait_types.UX_TRANSITION)
- workflow_run.new_history_target_link.wait_for_absent_or_hidden()
+ workflow_run.new_history_badge.wait_for_absent_or_hidden()
self.workflow_run_wait_for_ok(hid=2, expand=True)
self.assert_item_summary_includes(2, "2 sequences")