From c3ce2f4819f40a8efb896a15ab907df94a14d9f0 Mon Sep 17 00:00:00 2001 From: Declan Carroll Date: Thu, 11 Sep 2025 20:16:46 +0100 Subject: [PATCH] test: Remove wait for spinner nodes (#19436) --- .../testing/playwright/tests/ui/50-logs.spec.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/testing/playwright/tests/ui/50-logs.spec.ts b/packages/testing/playwright/tests/ui/50-logs.spec.ts index dff44c8fd5..12683f27e7 100644 --- a/packages/testing/playwright/tests/ui/50-logs.spec.ts +++ b/packages/testing/playwright/tests/ui/50-logs.spec.ts @@ -230,19 +230,13 @@ test.describe('Logs', () => { await expect(n8n.executions.logsPanel.getLogEntries().nth(2)).toContainText('E2E Chat Model'); }); - test('should show logs for a workflow with a node that waits for webhook', async ({ - n8n, - setupRequirements, - }) => { - await setupRequirements({ workflow: 'Workflow_wait_for_webhook.json' }); - - await n8n.canvas.canvasBody().click({ position: { x: 0, y: 0 } }); // click logs panel to deselect nodes in canvas - await n8n.canvas.clickZoomToFitButton(); + test('should show logs for a workflow with a node that waits for webhook', async ({ n8n }) => { + await n8n.start.fromImportedWorkflow('Workflow_wait_for_webhook.json'); + await n8n.canvas.deselectAll(); await n8n.canvas.logsPanel.open(); await n8n.canvas.clickExecuteWorkflowButton(); - await expect(n8n.canvas.getNodesWithSpinner()).toContainText(NODES.WAIT_NODE); await expect(n8n.canvas.getWaitingNodes()).toContainText(NODES.WAIT_NODE); await expect(n8n.canvas.logsPanel.getLogEntries()).toHaveCount(2); await expect(n8n.canvas.logsPanel.getLogEntries().nth(1)).toContainText(NODES.WAIT_NODE); @@ -259,7 +253,6 @@ test.describe('Logs', () => { const response = await n8n.page.request.get(webhookUrl!); expect(response.status()).toBe(200); - await expect(n8n.canvas.getNodesWithSpinner()).toBeHidden(); await expect(n8n.canvas.getWaitingNodes()).toBeHidden(); await expect( n8n.canvas.logsPanel.getOverviewStatus().filter({ hasText: /Success in [\d.]+m?s/ }),