From 366ec6bdbc1614731e476b16bdb0d026264a6d3a Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 3 Aug 2026 15:52:08 +0200 Subject: [PATCH] fix custom widget e2e login race --- e2e/custom-widgets-custom-jsx.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 });