mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 06:18:35 +02:00
🔧 Add initial snapshots
This commit is contained in:
parent
1a10b7ebfd
commit
479406b884
7 changed files with 1241 additions and 2 deletions
|
@ -48,3 +48,29 @@ test("Renders a file with solid, gradient and image fills", async ({
|
|||
|
||||
await expect(workspace.canvas).toHaveScreenshot();
|
||||
});
|
||||
|
||||
test("Renders a file with strokes", async ({ page }) => {
|
||||
const workspace = new WasmWorkspacePage(page);
|
||||
await workspace.setupEmptyFile();
|
||||
await workspace.mockAsset(
|
||||
"202c1104-9385-81d3-8006-5074e4682cac",
|
||||
"render-wasm/assets/penguins.jpg",
|
||||
);
|
||||
await workspace.mockAsset(
|
||||
"202c1104-9385-81d3-8006-5074c50339b6",
|
||||
"render-wasm/assets/penguins.jpg",
|
||||
);
|
||||
await workspace.mockAsset(
|
||||
"202c1104-9385-81d3-8006-507560ce29e3",
|
||||
"render-wasm/assets/penguins.jpg",
|
||||
);
|
||||
await workspace.mockGetFile("render-wasm/get-file-shapes-strokes.json");
|
||||
|
||||
await workspace.goToWorkspace({
|
||||
id: "202c1104-9385-81d3-8006-507413ff2c99",
|
||||
pageId: "202c1104-9385-81d3-8006-507413ff2c9a",
|
||||
});
|
||||
await workspace.waitForFirstRender();
|
||||
|
||||
await expect(workspace.canvas).toHaveScreenshot();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue