🔧 Make visual regression tests to hide the UI when taking a screenshot (render-wasm tests only)

This commit is contained in:
Belén Albeza 2025-06-19 13:37:52 +02:00
parent 4ea4a1e130
commit 9852d24b83
13 changed files with 16 additions and 2 deletions

View file

@ -31,12 +31,16 @@ test("Updates a text font", async ({ page }) => {
id: "3b0d758a-8c9d-8013-8006-52c8337e5c72",
pageId: "3b0d758a-8c9d-8013-8006-52c8337e5c73",
});
await workspace.waitForFirstRender();
await workspace.waitForFirstRender({ hideUI: false });
await workspace.clickLeafLayer("this is a text");
const fontStyle = workspace.page.getByTitle("Font Style");
await fontStyle.click();
const boldOption = fontStyle.getByText("bold").first();
await boldOption.click();
await workspace.hideUI();
await expect(workspace.canvas).toHaveScreenshot();
});