Merge pull request #6891 from penpot/elenatorro-test-style-decoration-blending

🔧 Add text decoration styles
This commit is contained in:
Aitor Moreno 2025-07-21 15:18:18 +02:00 committed by GitHub
commit fdaef2be69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 3210 additions and 125 deletions

View file

@ -121,7 +121,6 @@ test("Renders a file with styled texts", async ({ page }) => {
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a file with texts with images", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
@ -145,6 +144,28 @@ test("Renders a file with texts with images", async ({ page }) => {
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a file with text decoration", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockFileMediaAsset(
[
"d6c33e7b-7b64-80f3-8006-78509a3a2d21",
],
"render-wasm/assets/pattern.png",
);
await mockGetEmojiFont(workspace);
await mockGetJapaneseFont(workspace);
await workspace.mockGetFile("render-wasm/get-file-text-decoration.json");
await workspace.goToWorkspace({
id: "d6c33e7b-7b64-80f3-8006-785098582f1d",
pageId: "d6c33e7b-7b64-80f3-8006-785098582f1e",
});
await workspace.waitForFirstRender();
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a file with multiple emoji", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB