🔧 Fix tab rendering with the text editor

This commit is contained in:
Elena Torro
2025-11-03 09:49:22 +01:00
committed by Alejandro Alonso
parent 54489c4285
commit d18a018236
7 changed files with 167 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -347,6 +347,26 @@ 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 tabs", async ({
page,
}) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockGetFile("render-wasm/get-file-text-tabs.json");
await workspace.goToWorkspace({
id: "55ed444c-1179-8175-8007-09da51f502e7",
pageId: "55ed444c-1179-8175-8007-09da51f502e8",
});
await workspace.waitForFirstRender({ hideUI: false });
await workspace.clickLeafLayer("shape-list");
await workspace.hideUI();
await workspace.page.keyboard.press("Enter");
await expect(workspace.canvas).toHaveScreenshot();
});
test.skip("Updates text alignment edition - part 1", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -3,6 +3,7 @@ import { WasmWorkspacePage } from "../pages/WasmWorkspacePage";
test.beforeEach(async ({ page }) => {
await WasmWorkspacePage.init(page);
await WasmWorkspacePage.mockConfigFlags(page, ["enable-feature-text-editor-v2"]);
});
test("BUG 10867 - Crash when loading comments", async ({ page }) => {