feat: Add variables e2e tests (no-changelog) (#6027)

* fix: fix n8n-checkbox alignment

* fix: use css variables in checkbox inner margin-top

* test: update snapshots

* feat: add variables e2e tests (no-changelog)

* test: update snapshot
This commit is contained in:
Alex Grozav
2023-04-20 15:08:13 +03:00
committed by GitHub
parent 9b59f1df9c
commit 723f81bab0
5 changed files with 201 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ function focusFirstInput() {
</script>
<template>
<tr :class="$style.variablesRow">
<tr :class="$style.variablesRow" data-test-id="variables-row">
<td class="variables-key-column">
<div>
<span v-if="!editing">{{ data.key }}</span>

View File

@@ -1,7 +1,7 @@
// Vitest Snapshot v1
exports[`VariablesRow > should render correctly 1`] = `
"<tr class=\\"variablesRow\\">
"<tr data-test-id=\\"variables-row\\" class=\\"variablesRow\\">
<td class=\\"variables-key-column\\">
<div><span>key</span></div>
</td>
@@ -29,7 +29,7 @@ exports[`VariablesRow > should render correctly 1`] = `
`;
exports[`VariablesRow > should show key and value inputs in edit mode 1`] = `
"<tr class=\\"variablesRow\\">
"<tr data-test-id=\\"variables-row\\" class=\\"variablesRow\\">
<td class=\\"variables-key-column\\">
<div>
<div class=\\"container\\" data-test-id=\\"variable-row-key-input\\">

View File

@@ -259,7 +259,7 @@ function displayName(resource: EnvironmentVariable) {
</template>
<template v-if="!isFeatureEnabled" #empty>
<n8n-action-box
data-test-id="empty-resources-list"
data-test-id="unavailable-resources-list"
emoji="👋"
:heading="$locale.baseText(contextBasedTranslationKeys.variables.unavailable.title)"
:description="