Avoid intercepting get-file-fragment in the playwright test

This commit is contained in:
Belén Albeza 2025-05-29 09:35:31 +02:00 committed by Alonso Torres
parent f23e460b2a
commit d4c6063378
4 changed files with 369 additions and 398 deletions

View file

@ -236,12 +236,7 @@ test("BUG 11177 - Font size input not showing 'mixed' when needed", async ({
}) => {
const workspace = new WorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockRPC(
"get-file-fragment?file-id=*&fragment-id=*",
"design/get-file-fragment-11177.json",
);
await workspace.mockRPC("update-file?id=*", "design/update-file-11177.json");
await workspace.mockRPC("get-file?id=*", "design/get-file-11177.json");
await workspace.mockRPC(/get\-file\?/, "design/get-file-11177.json");
await workspace.goToWorkspace({
fileId: "b3e5731a-c295-801d-8006-3fc33c3b1b13",