From 37dc38f4571e0465409bf4441b0ab6d2b567242b Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Wed, 2 Oct 2024 15:05:34 -0500 Subject: [PATCH] adjust seleniums for changes in `JobStep` and invocations in general --- .../History/SwitchToHistoryLink.vue | 14 +++++++- .../WorkflowInvocationHeader.vue | 4 ++- .../WorkflowInvocationState.vue | 2 +- client/src/utils/navigation/navigation.yml | 21 ++++++----- client/src/utils/navigation/schema.ts | 9 +++-- lib/galaxy/selenium/navigates_galaxy.py | 2 +- .../selenium/test_invocation_grid.py | 2 +- .../test_workflow_invocation_details.py | 35 +++++++++---------- .../test_workflow_run_target.py | 12 ++++--- 9 files changed, 57 insertions(+), 44 deletions(-) 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) {