From fbdc808e972a13d4598cf4f7e4ee876bfd7dfd35 Mon Sep 17 00:00:00 2001 From: "n8n-cat-bot[bot]" <283985454+n8n-cat-bot[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 13:09:45 +0100 Subject: [PATCH] test: Deflake debug and inject-previous execution specs (#31107) Co-authored-by: n8n-cat-bot[bot] Co-authored-by: Claude Opus 4.7 Co-authored-by: Declan Carroll --- .../tests/e2e/workflows/editor/execution/debug.spec.ts | 7 +++++-- .../workflows/editor/execution/inject-previous.spec.ts | 8 ++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/testing/playwright/tests/e2e/workflows/editor/execution/debug.spec.ts b/packages/testing/playwright/tests/e2e/workflows/editor/execution/debug.spec.ts index e837fcf9327..ac1f1e07fc1 100644 --- a/packages/testing/playwright/tests/e2e/workflows/editor/execution/debug.spec.ts +++ b/packages/testing/playwright/tests/e2e/workflows/editor/execution/debug.spec.ts @@ -56,6 +56,7 @@ test.describe( await createBasicWorkflow(n8n, URLS.FAILING); await n8n.workflowComposer.executeWorkflowAndWaitForNotification( NOTIFICATIONS.PROBLEM_IN_NODE, + { timeout: 10_000 }, ); await importExecutionForDebugging(n8n); @@ -64,8 +65,10 @@ test.describe( await n8n.canvas.waitForSaveWorkflowCompleted(); await n8n.ndv.close(); - await n8n.workflowComposer.executeWorkflowAndWaitForNotification(NOTIFICATIONS.SUCCESSFUL); - expect(n8n.page.url()).not.toContain('/debug'); + await n8n.workflowComposer.executeWorkflowAndWaitForNotification(NOTIFICATIONS.SUCCESSFUL, { + timeout: 10_000, + }); + await expect(n8n.page).not.toHaveURL(/\/debug/); }); test('should handle pinned data conflicts during execution import', async ({ n8n }) => { diff --git a/packages/testing/playwright/tests/e2e/workflows/editor/execution/inject-previous.spec.ts b/packages/testing/playwright/tests/e2e/workflows/editor/execution/inject-previous.spec.ts index 46472da8edb..df12cce77ae 100644 --- a/packages/testing/playwright/tests/e2e/workflows/editor/execution/inject-previous.spec.ts +++ b/packages/testing/playwright/tests/e2e/workflows/editor/execution/inject-previous.spec.ts @@ -17,9 +17,7 @@ test.describe( await expect(n8n.canvas.getExecuteWorkflowButton()).toBeVisible(); await n8n.canvas.clickZoomToFitButton(); - await n8n.canvas.clickExecuteWorkflowButton(); - - await n8n.notifications.waitForNotificationAndClose( + await n8n.workflowComposer.executeWorkflowAndWaitForNotification( NOTIFICATIONS.WORKFLOW_EXECUTED_SUCCESSFULLY, ); @@ -47,9 +45,7 @@ test.describe( await expect(n8n.canvas.getExecuteWorkflowButton()).toBeVisible(); await n8n.canvas.clickZoomToFitButton(); - await n8n.canvas.clickExecuteWorkflowButton(); - - await n8n.notifications.waitForNotificationAndClose( + await n8n.workflowComposer.executeWorkflowAndWaitForNotification( NOTIFICATIONS.WORKFLOW_EXECUTED_SUCCESSFULLY, );