diff --git a/e2e/custom-widgets-custom-jsx.spec.ts b/e2e/custom-widgets-custom-jsx.spec.ts index f85df45dd..3b75c2d5e 100644 --- a/e2e/custom-widgets-custom-jsx.spec.ts +++ b/e2e/custom-widgets-custom-jsx.spec.ts @@ -45,7 +45,10 @@ describe("Custom JSX custom widgets", () => { await page.goto(`${baseUrl}/auth/login`); await page.getByLabel("Username").fill(adminCredentials.username); await page.locator("#password").fill(adminCredentials.password); - const loginNavigation = page.waitForURL(baseUrl, { timeout: 15_000, waitUntil: "commit" }); + const loginNavigation = page.waitForURL((url) => url.origin === baseUrl && url.pathname !== "/auth/login", { + timeout: 60_000, + waitUntil: "commit", + }); await page.locator("css=button[type='submit']").click(); await loginNavigation;