diff --git a/e2e/custom-widgets-custom-jsx.spec.ts b/e2e/custom-widgets-custom-jsx.spec.ts index cba6c0d75..f85df45dd 100644 --- a/e2e/custom-widgets-custom-jsx.spec.ts +++ b/e2e/custom-widgets-custom-jsx.spec.ts @@ -45,8 +45,9 @@ 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" }); await page.locator("css=button[type='submit']").click(); - await page.waitForURL(baseUrl, { timeout: 15_000 }); + await loginNavigation; await page.goto(`${baseUrl}/manage/custom-widgets/new`); await page.waitForURL("**/manage/custom-widgets/new", { timeout: 15_000 });