🐛 Add mock to fix WASM render regression tests (#11268)

This commit is contained in:
Elena Torró 2026-08-19 12:49:21 +02:00 committed by GitHub
parent 54aaebee1e
commit 1886697458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,12 @@ test.beforeEach(async ({ page }) => {
"enable-feature-render-wasm",
"enable-render-wasm-dpr",
]);
// Opening a wasm workspace backfills :position-data for text shapes, persisting the file.
await WasmWorkspacePage.mockRPC(
page,
"update-file?id=*",
"text-editor/update-file.json",
);
});
test("Renders a file with basic shapes, boards and groups", async ({

View File

@ -7,6 +7,12 @@ test.beforeEach(async ({ page }) => {
"enable-feature-render-wasm",
"enable-render-wasm-dpr",
]);
// Opening a wasm workspace backfills :position-data for text shapes, persisting the file.
await WasmWorkspacePage.mockRPC(
page,
"update-file?id=*",
"text-editor/update-file.json",
);
});
async function mockGetEmojiFont(workspace) {