fix: add waitUntil option for navigation in CreateMonitor and CreateProject tests

This commit is contained in:
Nawaz Dhandala
2026-04-05 20:00:03 +01:00
parent 875dbccad3
commit 23f5ffc840
2 changed files with 2 additions and 0 deletions

View File

@@ -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.

View File

@@ -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.