fix: Wait for Builder readiness before E2E actions

This commit is contained in:
Oleg Isonen committed 2026-11-13 17:23:53 +00:00
1 parent d62fc4bfa9
commit 00dd3f637f
1 file changed
+6
+6
View File
@@ -136,6 +136,9 @@ export const openProjectBuilder = async ({
.waitForLoadState("networkidle", { timeout: builderNetworkIdleTimeout })
.catch(() => undefined);
const canvas = await waitForCanvasFrame({ page });
await page
.getByRole("progressbar")
.waitFor({ state: "hidden", timeout: 30_000 });
return canvas;
};
@@ -151,5 +154,8 @@ export const openBuilderUrl = async ({
.waitForLoadState("networkidle", { timeout: builderNetworkIdleTimeout })
.catch(() => undefined);
const canvas = await waitForCanvasFrame({ page });
await page
.getByRole("progressbar")
.waitFor({ state: "hidden", timeout: 30_000 });
return canvas;
};