From 3292132c493340e9e187c4e73da283d34002d74d Mon Sep 17 00:00:00 2001 From: Artem Sorokin <38620398+seemewalkin@users.noreply.github.com> Date: Fri, 5 Dec 2025 16:27:08 +0100 Subject: [PATCH] test: Migrate node-specific tests to nodes/ directory (#22835) --- .../community-nodes.spec.ts} | 12 ++++++------ .../email-send-node.spec.ts} | 2 +- .../form-trigger-node.spec.ts} | 2 +- .../http-request-node.spec.ts} | 2 +- .../ui/{30-if-node.spec.ts => nodes/if-node.spec.ts} | 4 ++-- .../tests/ui/{pdf.spec.ts => nodes/pdf-node.spec.ts} | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) rename packages/testing/playwright/tests/ui/{21-community-nodes.spec.ts => nodes/community-nodes.spec.ts} (87%) rename packages/testing/playwright/tests/ui/{30-mail-node.spec.ts => nodes/email-send-node.spec.ts} (97%) rename packages/testing/playwright/tests/ui/{16-form-trigger-node.spec.ts => nodes/form-trigger-node.spec.ts} (98%) rename packages/testing/playwright/tests/ui/{8-http-request-node.spec.ts => nodes/http-request-node.spec.ts} (95%) rename packages/testing/playwright/tests/ui/{30-if-node.spec.ts => nodes/if-node.spec.ts} (94%) rename packages/testing/playwright/tests/ui/{pdf.spec.ts => nodes/pdf-node.spec.ts} (87%) diff --git a/packages/testing/playwright/tests/ui/21-community-nodes.spec.ts b/packages/testing/playwright/tests/ui/nodes/community-nodes.spec.ts similarity index 87% rename from packages/testing/playwright/tests/ui/21-community-nodes.spec.ts rename to packages/testing/playwright/tests/ui/nodes/community-nodes.spec.ts index da1f67432c8..9516f64ac86 100644 --- a/packages/testing/playwright/tests/ui/21-community-nodes.spec.ts +++ b/packages/testing/playwright/tests/ui/nodes/community-nodes.spec.ts @@ -1,9 +1,9 @@ -import { MANUAL_TRIGGER_NODE_NAME } from '../../config/constants'; -import { test, expect } from '../../fixtures/base'; -import customCredential from '../../workflows/Custom_credential.json'; -import customNodeFixture from '../../workflows/Custom_node.json'; -import customNodeWithCustomCredentialFixture from '../../workflows/Custom_node_custom_credential.json'; -import customNodeWithN8nCredentialFixture from '../../workflows/Custom_node_n8n_credential.json'; +import { MANUAL_TRIGGER_NODE_NAME } from '../../../config/constants'; +import { test, expect } from '../../../fixtures/base'; +import customCredential from '../../../workflows/Custom_credential.json'; +import customNodeFixture from '../../../workflows/Custom_node.json'; +import customNodeWithCustomCredentialFixture from '../../../workflows/Custom_node_custom_credential.json'; +import customNodeWithN8nCredentialFixture from '../../../workflows/Custom_node_n8n_credential.json'; const CUSTOM_NODE_NAME = 'E2E Node'; const CUSTOM_NODE_WITH_N8N_CREDENTIAL = 'E2E Node with native n8n credential'; diff --git a/packages/testing/playwright/tests/ui/30-mail-node.spec.ts b/packages/testing/playwright/tests/ui/nodes/email-send-node.spec.ts similarity index 97% rename from packages/testing/playwright/tests/ui/30-mail-node.spec.ts rename to packages/testing/playwright/tests/ui/nodes/email-send-node.spec.ts index 6ccd601809a..996c052e043 100644 --- a/packages/testing/playwright/tests/ui/30-mail-node.spec.ts +++ b/packages/testing/playwright/tests/ui/nodes/email-send-node.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '../../fixtures/base'; +import { test, expect } from '../../../fixtures/base'; test.use({ addContainerCapability: { email: true } }); diff --git a/packages/testing/playwright/tests/ui/16-form-trigger-node.spec.ts b/packages/testing/playwright/tests/ui/nodes/form-trigger-node.spec.ts similarity index 98% rename from packages/testing/playwright/tests/ui/16-form-trigger-node.spec.ts rename to packages/testing/playwright/tests/ui/nodes/form-trigger-node.spec.ts index fa4843d519d..a02c16cf82c 100644 --- a/packages/testing/playwright/tests/ui/16-form-trigger-node.spec.ts +++ b/packages/testing/playwright/tests/ui/nodes/form-trigger-node.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '../../fixtures/base'; +import { test, expect } from '../../../fixtures/base'; test.describe('Form Trigger', () => { test.beforeEach(async ({ n8n }) => { diff --git a/packages/testing/playwright/tests/ui/8-http-request-node.spec.ts b/packages/testing/playwright/tests/ui/nodes/http-request-node.spec.ts similarity index 95% rename from packages/testing/playwright/tests/ui/8-http-request-node.spec.ts rename to packages/testing/playwright/tests/ui/nodes/http-request-node.spec.ts index 87b339d9ce4..220dd9b6f99 100644 --- a/packages/testing/playwright/tests/ui/8-http-request-node.spec.ts +++ b/packages/testing/playwright/tests/ui/nodes/http-request-node.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '../../fixtures/base'; +import { test, expect } from '../../../fixtures/base'; test.describe('HTTP Request node', () => { test.beforeEach(async ({ n8n }) => { diff --git a/packages/testing/playwright/tests/ui/30-if-node.spec.ts b/packages/testing/playwright/tests/ui/nodes/if-node.spec.ts similarity index 94% rename from packages/testing/playwright/tests/ui/30-if-node.spec.ts rename to packages/testing/playwright/tests/ui/nodes/if-node.spec.ts index 3c03ea9fa8d..85b25f35663 100644 --- a/packages/testing/playwright/tests/ui/30-if-node.spec.ts +++ b/packages/testing/playwright/tests/ui/nodes/if-node.spec.ts @@ -1,5 +1,5 @@ -import { IF_NODE_NAME } from '../../config/constants'; -import { test, expect } from '../../fixtures/base'; +import { IF_NODE_NAME } from '../../../config/constants'; +import { test, expect } from '../../../fixtures/base'; const FILTER_PARAM_NAME = 'conditions'; diff --git a/packages/testing/playwright/tests/ui/pdf.spec.ts b/packages/testing/playwright/tests/ui/nodes/pdf-node.spec.ts similarity index 87% rename from packages/testing/playwright/tests/ui/pdf.spec.ts rename to packages/testing/playwright/tests/ui/nodes/pdf-node.spec.ts index b6681a3a087..f3c4f1dbaba 100644 --- a/packages/testing/playwright/tests/ui/pdf.spec.ts +++ b/packages/testing/playwright/tests/ui/nodes/pdf-node.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from '../../fixtures/base'; +import { expect, test } from '../../../fixtures/base'; test.describe('PDF Test', () => { test('Can read and write PDF files and extract text', async ({ n8n }) => {