🐛 Fix parsing large paths with multiple subpaths

This commit is contained in:
Elena Torro
2025-09-24 14:16:03 +02:00
parent 32770c685a
commit 9d8ad0ea6e
8 changed files with 798 additions and 221 deletions

View File

@@ -195,3 +195,19 @@ test("Renders a file with shadows applied to any kind of shape", async ({
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a file with a closed path shape with multiple segments using strokes and shadow", async ({
page,
}) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockGetFile("render-wasm/get-subpath-stroke-shadow.json");
await workspace.goToWorkspace({
id: "3f7c3cc4-556d-80fa-8006-da2505231c2b",
pageId: "3f7c3cc4-556d-80fa-8006-da2505231c2c",
});
await workspace.waitForFirstRender();
await expect(workspace.canvas).toHaveScreenshot();
});