From 23f5ffc840ac89a04342a7b88022315b5f15a339 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Sun, 5 Apr 2026 20:00:03 +0100 Subject: [PATCH] fix: add waitUntil option for navigation in CreateMonitor and CreateProject tests --- E2E/Tests/Dashboard/CreateMonitor.spec.ts | 1 + E2E/Tests/Dashboard/CreateProject.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/E2E/Tests/Dashboard/CreateMonitor.spec.ts b/E2E/Tests/Dashboard/CreateMonitor.spec.ts index e227a966b7..6bce304d6e 100644 --- a/E2E/Tests/Dashboard/CreateMonitor.spec.ts +++ b/E2E/Tests/Dashboard/CreateMonitor.spec.ts @@ -100,6 +100,7 @@ test.describe("Monitor Creation", () => { // Wait for navigation to the project dashboard await page.waitForURL(projectDashboardUrlRegex, { timeout: 90000, + waitUntil: "domcontentloaded", }); // Let project-selection redirects finish before navigating deeper. diff --git a/E2E/Tests/Dashboard/CreateProject.spec.ts b/E2E/Tests/Dashboard/CreateProject.spec.ts index 47cc801f38..ef14163566 100644 --- a/E2E/Tests/Dashboard/CreateProject.spec.ts +++ b/E2E/Tests/Dashboard/CreateProject.spec.ts @@ -104,6 +104,7 @@ test.describe("Project Creation", () => { // Wait for navigation to the project dashboard await page.waitForURL(projectDashboardUrlRegex, { timeout: 90000, + waitUntil: "domcontentloaded", }); // Give any final redirect triggered by project selection time to settle.