🐛 Fix new lines spacing between paragraphs

This commit is contained in:
Elena Torro
2025-11-13 13:12:14 +01:00
parent 3f05dae455
commit 127fa931c7
6 changed files with 234 additions and 20 deletions

View File

@@ -347,6 +347,23 @@ test("Renders a file with texts with with text spans of different sizes", async
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a file with texts with paragraphs and breaking lines", async ({
page,
}) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockGetFile(
"render-wasm/get-file-text-paragraph-new-lines.json",
);
await workspace.goToWorkspace({
id: "a5f238bd-dd8a-8164-8007-1bc3481eaf05",
pageId: "a5f238bd-dd8a-8164-8007-1bc3481eaf06",
});
await workspace.waitForFirstRender();
await expect(workspace.canvas).toHaveScreenshot();
});
// TODO: enable this test once we use the wasm renderer in the new editor
test.skip("Renders a file with texts with tabs", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);