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, );