🔧 Adding more e2e tests for nested frames with clipping

This commit is contained in:
Alejandro Alonso
2025-11-26 11:36:27 +01:00
committed by Belén Albeza
parent e3b87390f6
commit 62ec66cd15
4 changed files with 1106 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -42,7 +42,7 @@ export class WasmWorkspacePage extends WorkspacePage {
} }
async waitForFirstRenderWithoutUI() { async waitForFirstRenderWithoutUI() {
await waitForFirstRender(); await this.waitForFirstRender();
await this.hideUI(); await this.hideUI();
} }

View File

@@ -258,6 +258,22 @@ test("Renders a file with nested frames with inherited blur", async ({
await expect(workspace.canvas).toHaveScreenshot(); await expect(workspace.canvas).toHaveScreenshot();
}); });
test("Renders a file with nested clipping frames", async ({ page }) => {
const workspace = new WasmWorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockGetFile(
"render-wasm/get-file-frame-nested-clipping.json",
);
await workspace.goToWorkspace({
id: "44471494-966a-8178-8006-c5bd93f0fe72",
pageId: "44471494-966a-8178-8006-c5bd93f0fe73",
});
await workspace.waitForFirstRenderWithoutUI();
await expect(workspace.canvas).toHaveScreenshot();
});
test("Renders a clipped frame with a large blur drop shadow", async ({ test("Renders a clipped frame with a large blur drop shadow", async ({
page, page,
}) => { }) => {