test(editor): Add e2e tests for executions preview (#5458)

*  Added initial tests for executions preview
* 🔥 Removing unneeded actions
* 👌 Renaming test suite, moving mock executions logic to util function
This commit is contained in:
Milorad FIlipović
2023-02-14 11:39:19 +01:00
committed by GitHub
parent 856238721a
commit 3b9eec77ec
8 changed files with 211 additions and 14 deletions

View File

@@ -14,11 +14,12 @@
name: VIEWS.EXECUTION_PREVIEW,
params: { workflowId: currentWorkflow, executionId: execution.id },
}"
:data-test-execution-status="executionUIDetails.name"
>
<div :class="$style.description">
<n8n-text color="text-dark" :bold="true" size="medium">{{
executionUIDetails.startTime
}}</n8n-text>
<n8n-text color="text-dark" :bold="true" size="medium" data-test-id="execution-time">
{{ executionUIDetails.startTime }}
</n8n-text>
<div :class="$style.executionStatus">
<n8n-spinner
v-if="executionUIDetails.name === 'running'"
@@ -62,6 +63,7 @@
:class="[$style.icon, $style.retry]"
:items="retryExecutionActions"
activatorIcon="redo"
data-test-id="retry-execution-button"
@select="onRetryMenuItemSelect"
/>
<n8n-tooltip v-if="execution.mode === 'manual'" placement="top">