🐛 Fix text fill gradients and add visual regression test for text styles

This commit is contained in:
Elena Torro 2025-06-18 18:02:28 +02:00
parent bbb9713f97
commit 5c120b601c
4 changed files with 3112 additions and 8 deletions

View file

@ -84,3 +84,16 @@ test("Renders a file with texts that use custom fonts", async ({ page }) => {
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a file with styled texts", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockGetFile("render-wasm/get-file-text-styles.json");
await workspace.goToWorkspace({
id: "6bd7c17d-4f59-815e-8006-5c2559af4939",
pageId: "6bd7c17d-4f59-815e-8006-5c2559af493a",
});
await workspace.waitForFirstRender();
await expect(workspace.canvas).toHaveScreenshot();
});