From 0596e1a5b33460b2232decfb44b68e91b29593a8 Mon Sep 17 00:00:00 2001 From: Artem Sorokin <38620398+seemewalkin@users.noreply.github.com> Date: Fri, 5 Dec 2025 14:57:22 +0100 Subject: [PATCH] test: Migrate expression and code editor tests (#22820) --- .../editor/code/code-node.spec.ts} | 4 ++-- .../editor/code/editors.spec.ts} | 6 +++--- .../editor/expressions/inline.spec.ts} | 4 ++-- .../editor/expressions/mapping.spec.ts} | 2 +- .../editor/expressions/modal.spec.ts} | 2 +- .../editor/expressions/transformation.spec.ts} | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) rename packages/testing/playwright/tests/ui/{6-code-node.spec.ts => workflows/editor/code/code-node.spec.ts} (98%) rename packages/testing/playwright/tests/ui/{41-editors.spec.ts => workflows/editor/code/editors.spec.ts} (97%) rename packages/testing/playwright/tests/ui/{11-inline-expression-editor.spec.ts => workflows/editor/expressions/inline.spec.ts} (98%) rename packages/testing/playwright/tests/ui/{14-mapping.spec.ts => workflows/editor/expressions/mapping.spec.ts} (99%) rename packages/testing/playwright/tests/ui/{9-expression-editor-modal.spec.ts => workflows/editor/expressions/modal.spec.ts} (98%) rename packages/testing/playwright/tests/ui/{14-data-transformation-expressions.spec.ts => workflows/editor/expressions/transformation.spec.ts} (97%) diff --git a/packages/testing/playwright/tests/ui/6-code-node.spec.ts b/packages/testing/playwright/tests/ui/workflows/editor/code/code-node.spec.ts similarity index 98% rename from packages/testing/playwright/tests/ui/6-code-node.spec.ts rename to packages/testing/playwright/tests/ui/workflows/editor/code/code-node.spec.ts index cd134a521d9..4423c5b45f3 100644 --- a/packages/testing/playwright/tests/ui/6-code-node.spec.ts +++ b/packages/testing/playwright/tests/ui/workflows/editor/code/code-node.spec.ts @@ -4,8 +4,8 @@ import { CODE_NODE_DISPLAY_NAME, CODE_NODE_NAME, MANUAL_TRIGGER_NODE_NAME, -} from '../../config/constants'; -import { test, expect } from '../../fixtures/base'; +} from '../../../../../config/constants'; +import { test, expect } from '../../../../../fixtures/base'; test.describe('Code node', () => { test.describe('Code editor', () => { diff --git a/packages/testing/playwright/tests/ui/41-editors.spec.ts b/packages/testing/playwright/tests/ui/workflows/editor/code/editors.spec.ts similarity index 97% rename from packages/testing/playwright/tests/ui/41-editors.spec.ts rename to packages/testing/playwright/tests/ui/workflows/editor/code/editors.spec.ts index a40eb177dbc..3b5cd97503d 100644 --- a/packages/testing/playwright/tests/ui/41-editors.spec.ts +++ b/packages/testing/playwright/tests/ui/workflows/editor/code/editors.spec.ts @@ -1,8 +1,8 @@ import fs from 'fs'; -import { MANUAL_TRIGGER_NODE_DISPLAY_NAME } from '../../config/constants'; -import { test, expect } from '../../fixtures/base'; -import { resolveFromRoot } from '../../utils/path-helper'; +import { MANUAL_TRIGGER_NODE_DISPLAY_NAME } from '../../../../../config/constants'; +import { test, expect } from '../../../../../fixtures/base'; +import { resolveFromRoot } from '../../../../../utils/path-helper'; test.describe('Editors', () => { test.beforeEach(async ({ n8n }) => { diff --git a/packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts b/packages/testing/playwright/tests/ui/workflows/editor/expressions/inline.spec.ts similarity index 98% rename from packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts rename to packages/testing/playwright/tests/ui/workflows/editor/expressions/inline.spec.ts index adfd9d529e8..cf9d98d3559 100644 --- a/packages/testing/playwright/tests/ui/11-inline-expression-editor.spec.ts +++ b/packages/testing/playwright/tests/ui/workflows/editor/expressions/inline.spec.ts @@ -3,8 +3,8 @@ import { SCHEDULE_TRIGGER_NODE_NAME, NO_OPERATION_NODE_NAME, HACKER_NEWS_NODE_NAME, -} from '../../config/constants'; -import { test, expect } from '../../fixtures/base'; +} from '../../../../../config/constants'; +import { test, expect } from '../../../../../fixtures/base'; const SCHEDULE_PARAMETER_NAME = 'daysInterval'; const HACKER_NEWS_ACTION = 'Get many items'; diff --git a/packages/testing/playwright/tests/ui/14-mapping.spec.ts b/packages/testing/playwright/tests/ui/workflows/editor/expressions/mapping.spec.ts similarity index 99% rename from packages/testing/playwright/tests/ui/14-mapping.spec.ts rename to packages/testing/playwright/tests/ui/workflows/editor/expressions/mapping.spec.ts index e01c189c352..0bf064d21dc 100644 --- a/packages/testing/playwright/tests/ui/14-mapping.spec.ts +++ b/packages/testing/playwright/tests/ui/workflows/editor/expressions/mapping.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '../../fixtures/base'; +import { test, expect } from '../../../../../fixtures/base'; test.describe('Data Mapping', () => { test.describe diff --git a/packages/testing/playwright/tests/ui/9-expression-editor-modal.spec.ts b/packages/testing/playwright/tests/ui/workflows/editor/expressions/modal.spec.ts similarity index 98% rename from packages/testing/playwright/tests/ui/9-expression-editor-modal.spec.ts rename to packages/testing/playwright/tests/ui/workflows/editor/expressions/modal.spec.ts index e9262e7aeb8..4cb8c8b0e83 100644 --- a/packages/testing/playwright/tests/ui/9-expression-editor-modal.spec.ts +++ b/packages/testing/playwright/tests/ui/workflows/editor/expressions/modal.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '../../fixtures/base'; +import { test, expect } from '../../../../../fixtures/base'; test.describe('Expression editor modal', () => { test.beforeEach(async ({ n8n }) => { diff --git a/packages/testing/playwright/tests/ui/14-data-transformation-expressions.spec.ts b/packages/testing/playwright/tests/ui/workflows/editor/expressions/transformation.spec.ts similarity index 97% rename from packages/testing/playwright/tests/ui/14-data-transformation-expressions.spec.ts rename to packages/testing/playwright/tests/ui/workflows/editor/expressions/transformation.spec.ts index 38830c73fd5..3e96641c83e 100644 --- a/packages/testing/playwright/tests/ui/14-data-transformation-expressions.spec.ts +++ b/packages/testing/playwright/tests/ui/workflows/editor/expressions/transformation.spec.ts @@ -1,5 +1,5 @@ -import { test, expect } from '../../fixtures/base'; -import type { n8nPage } from '../../pages/n8nPage'; +import { test, expect } from '../../../../../fixtures/base'; +import type { n8nPage } from '../../../../../pages/n8nPage'; test.describe('Data transformation expressions', () => { test.beforeEach(async ({ n8n }) => {