From 8d693743863ba56fe330d7c5e18cb805102b0eee Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Tue, 15 Sep 2026 10:43:41 +0200 Subject: [PATCH] :bug: Makes the CI more stable (#11698) --- frontend/playwright/ui/pages/WorkspacePage.js | 10 ++++++---- frontend/playwright/ui/specs/design-tab.spec.js | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/playwright/ui/pages/WorkspacePage.js b/frontend/playwright/ui/pages/WorkspacePage.js index d2953a2c71..3ad06f251e 100644 --- a/frontend/playwright/ui/pages/WorkspacePage.js +++ b/frontend/playwright/ui/pages/WorkspacePage.js @@ -256,12 +256,14 @@ export class WorkspacePage extends BaseWebSocketPage { "get-font-variants?team-id=*": "workspace/get-font-variants-empty.json", "get-file-fragment?file-id=*": "workspace/get-file-fragment-blank.json", "get-file-libraries?file-id=*": "workspace/get-file-libraries-empty.json", + // Any shape mutation schedules a persistence flush. An unmocked + // update-file answers 404, which the persistence task rethrows as an + // unhandled error and the workspace is replaced by the Internal Error + // page. Tests that need a specific response mock this again afterwards; + // the last matching route wins. + "update-file?id=*": "workspace/update-file-empty.json", }); - if (this.textEditor) { - await this.mockRPC("update-file?id=*", "text-editor/update-file.json"); - } - // by default we mock the blank file. await this.mockGetFile("workspace/get-file-blank.json"); } diff --git a/frontend/playwright/ui/specs/design-tab.spec.js b/frontend/playwright/ui/specs/design-tab.spec.js index c70ca3bbdd..9c156f8d64 100644 --- a/frontend/playwright/ui/specs/design-tab.spec.js +++ b/frontend/playwright/ui/specs/design-tab.spec.js @@ -460,6 +460,9 @@ test("BUG 11177 - Font size input not showing 'mixed' when needed", async ({ await workspace.clickLeafLayer("Ipsum"); await workspace.clickLeafLayer("Lorem", { modifiers: ["Shift"] }); + await workspace.expectSelectedLayer("Ipsum"); + await workspace.expectSelectedLayer("Lorem"); + const fontSizeInput = workspace.page.getByLabel("Font size"); await expect(fontSizeInput).toHaveValue("");