Skip to content

Scheduling infrastructure for absolutely everyone.

fix: flaky e2e test in saml.e2e (#18559)

Anik Dhabal Babu3da76940023b
diff --git a/apps/web/playwright/saml.e2e.ts b/apps/web/playwright/saml.e2e.ts
index 7c6425e2dc2..7af9ba96644 100644
--- a/apps/web/playwright/saml.e2e.ts
+++ b/apps/web/playwright/saml.e2e.ts
@@ -16,6 +16,9 @@ test.describe("SAML tests", () => {
// TODO: Figure out a way to use the users from fixtures here, right now we cannot set
// the SAML_ADMINS env variables dynamically
await login({ username: "pro", email: "[email protected]", password: "pro" }, page);
+ const shellLocator = page.locator(`[data-testid=dashboard-shell]`);
+ await page.waitForURL("/event-types");
+ await expect(shellLocator).toBeVisible();
// eslint-disable-next-line playwright/no-skipped-test
// Try to go Security page
await page.goto("/settings/security/sso");