mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🔧 Adding more e2e tests for nested frames with clipping
This commit is contained in:
committed by
Belén Albeza
parent
e3b87390f6
commit
62ec66cd15
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@ export class WasmWorkspacePage extends WorkspacePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async waitForFirstRenderWithoutUI() {
|
async waitForFirstRenderWithoutUI() {
|
||||||
await waitForFirstRender();
|
await this.waitForFirstRender();
|
||||||
await this.hideUI();
|
await this.hideUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
}) => {
|
}) => {
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user