mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Fix playwright tests
This commit is contained in:
committed by
Alonso Torres
parent
bda5de5c1b
commit
f96ed8ccd6
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"~:id": "~u088df3d4-d383-80f6-8004-527e50ea4f1f",
|
||||||
|
"~:revn": 21,
|
||||||
|
"~:file-id": "~uc7ce0794-0992-8105-8004-38f280443849",
|
||||||
|
"~:session-id": "~u1dc6d4fa-7bd3-803a-8004-527dd9df2c62",
|
||||||
|
"~:changes": []
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -360,7 +360,7 @@ test("Renders a file with texts with paragraphs and breaking lines", async ({
|
|||||||
id: "a5f238bd-dd8a-8164-8007-1bc3481eaf05",
|
id: "a5f238bd-dd8a-8164-8007-1bc3481eaf05",
|
||||||
pageId: "a5f238bd-dd8a-8164-8007-1bc3481eaf06",
|
pageId: "a5f238bd-dd8a-8164-8007-1bc3481eaf06",
|
||||||
});
|
});
|
||||||
await workspace.waitForFirstRender();
|
await workspace.waitForFirstRenderWithoutUI();
|
||||||
await expect(workspace.canvas).toHaveScreenshot();
|
await expect(workspace.canvas).toHaveScreenshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ const setupFile = async (workspacePage) => {
|
|||||||
fileId: "7b2da435-6186-815a-8007-0daa95d2f26d",
|
fileId: "7b2da435-6186-815a-8007-0daa95d2f26d",
|
||||||
pageId: "ce79274b-11ab-8088-8007-0487ad43f789",
|
pageId: "ce79274b-11ab-8088-8007-0487ad43f789",
|
||||||
});
|
});
|
||||||
|
await workspacePage.mockRPC(
|
||||||
|
"update-file?id=*",
|
||||||
|
"workspace/update-file-empty.json",
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const shapeToLayerName = {
|
const shapeToLayerName = {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user