🐛 Improved e2e tests stability

This commit is contained in:
alonso.torres 2026-04-30 16:17:50 +02:00 committed by Alonso Torres
parent 7c0465de6b
commit f6bd991968
3 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1 @@
{"~:features":{"~#set":["layout/grid","styles/v2","fdata/pointer-map","fdata/objects-map","components/v2","fdata/shape-data-type"]},"~:permissions":{"~:type":"~:membership","~:is-owner":true,"~:is-admin":true,"~:can-edit":true,"~:can-read":true,"~:is-logged":true},"~:has-media-trimmed":false,"~:comment-thread-seqn":0,"~:name":"New File 5","~:revn":2,"~:modified-at":"~m1730197748522","~:vern":2,"~:id":"~u406b7b01-d3e2-80e4-8005-3138ac5d449c","~:is-shared":false,"~:version":55,"~:project-id":"~u3ffbd505-2f26-800f-8004-f34da98bdad8","~:created-at":"~m1730197736824","~:data":{"~:pages":["~u406b7b01-d3e2-80e4-8005-3138ac5d449d"],"~:pages-index":{"~u406b7b01-d3e2-80e4-8005-3138ac5d449d":{"~#penpot/pointer":["~u406b7b01-d3e2-80e4-8005-3138b7cc5f0b",{"~:created-at":"~m1730197748531"}]}},"~:id":"~u406b7b01-d3e2-80e4-8005-3138ac5d449c","~:options":{"~:components-v2":true}}}

View File

@ -14,14 +14,16 @@ const setupFile = async (workspacePage) => {
/get\-file\?/,
"workspace/get-file-inspect-tab.json",
);
await workspacePage.mockRPC(
/update\-file\?/,
"workspace/update-file-empty.json",
);
await workspacePage.goToWorkspace({
fileId: "7b2da435-6186-815a-8007-0daa95d2f26d",
pageId: "ce79274b-11ab-8088-8007-0487ad43f789",
});
await workspacePage.mockRPC(
"update-file?id=*",
"workspace/update-file-empty.json",
);
};
const shapeToLayerName = {

View File

@ -87,6 +87,9 @@ test("Save and restore version", async ({ page }) => {
"workspace/versions-restore-snapshot-1.json",
);
await workspacePage.mockRPC(/get\-file\?/, "workspace/versions-init-2.json");
await page.getByRole("button", { name: "Open version menu" }).click();
await page.getByRole("button", { name: "Restore" }).click();
await page.getByRole("button", { name: "Restore" }).click();