mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Improve setting svg attrs in wasm
This commit is contained in:
committed by
Alonso Torres
parent
dba718b850
commit
479ce99b32
1312
frontend/playwright/data/render-wasm/get-file-svg-attrs.json
Normal file
1312
frontend/playwright/data/render-wasm/get-file-svg-attrs.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -211,3 +211,20 @@ test("Renders a file with a closed path shape with multiple segments using strok
|
||||
|
||||
await expect(workspace.canvas).toHaveScreenshot();
|
||||
});
|
||||
|
||||
|
||||
test("Renders a file with paths and svg attrs", async ({
|
||||
page,
|
||||
}) => {
|
||||
const workspace = new WasmWorkspacePage(page);
|
||||
await workspace.setupEmptyFile();
|
||||
await workspace.mockGetFile("render-wasm/get-file-svg-attrs.json");
|
||||
|
||||
await workspace.goToWorkspace({
|
||||
id: "4732f3e3-7a1a-807e-8006-ff76066e631d",
|
||||
pageId: "4732f3e3-7a1a-807e-8006-ff76066e631e",
|
||||
});
|
||||
await workspace.waitForFirstRender();
|
||||
|
||||
await expect(workspace.canvas).toHaveScreenshot();
|
||||
});
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user