mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
fix: Wait for Builder readiness before E2E actions
This commit is contained in:
1 parent
d62fc4bfa9
commit
00dd3f637f
1 file changed
+6
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user