mirror of
https://github.com/penpot/penpot.git
synced 2026-08-22 12:49:26 +00:00
🐛 Add mock to fix WASM render regression tests (#11268)
This commit is contained in:
parent
54aaebee1e
commit
1886697458
@ -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 ({
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user