mirror of
https://github.com/penpot/penpot.git
synced 2025-07-10 00:17:17 +02:00
🔧 Make visual regression tests to hide the UI when taking a screenshot (render-wasm tests only)
This commit is contained in:
parent
4ea4a1e130
commit
9852d24b83
13 changed files with 16 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue