test: Setup e2e tests for workflow actions (#4724)

*  Adding first batch of workflow actions tests
*  Adding loading handling logic and new workflow actions tests
*  Added workflow activation and rename tests
* 👌 Addressing review feedback
* 🔥 Removing leftover commented code
This commit is contained in:
Milorad FIlipović
2022-11-25 15:32:09 +01:00
committed by GitHub
parent 1579d05fd1
commit cb3bfc32f7
8 changed files with 116 additions and 13 deletions

View File

@@ -6,6 +6,7 @@
:name="workflowName"
:limit="value"
:custom="true"
testId="workflow-name-input"
>
<template #default="{ shortenedName }">
<InlineTextEdit
@@ -17,7 +18,6 @@
@submit="onNameSubmit"
placeholder="Enter workflow name"
class="name"
data-test-id="workflow-name-input"
/>
</template>
</ShortenName>
@@ -80,11 +80,12 @@
type="secondary"
:saved="!this.isDirty && !this.isNewWorkflow"
:disabled="isWorkflowSaving"
data-test-id="workflow-save-button"
@click="onSaveButtonClick"
/>
<div :class="$style.workflowMenuContainer">
<input :class="$style.hiddenInput" type="file" ref="importFile" data-test-id="workflow-import-input" @change="handleFileImport()">
<n8n-action-dropdown :items="workflowMenuItems" @select="onWorkflowMenuSelect" />
<n8n-action-dropdown :items="workflowMenuItems" data-test-id="workflow-menu" @select="onWorkflowMenuSelect" />
</div>
</template>
</PushConnectionTracker>