fix custom widget e2e login race

This commit is contained in:
Thomas Camlong committed 2026-08-03 15:52:08 +02:00
1 parent 9f4b147f0e
commit 366ec6bdbc
1 file changed
+2 -1
+2 -1
View File
@@ -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 });