Improve setting svg attrs in wasm

This commit is contained in:
Alejandro Alonso
2025-10-23 14:22:22 +02:00
committed by Alonso Torres
parent dba718b850
commit 479ce99b32
14 changed files with 1554 additions and 73 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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