🐛 Makes the CI more stable (#11698)

This commit is contained in:
Alonso Torres 2026-09-15 10:43:41 +02:00 committed by GitHub
parent 66876f16b2
commit 8d69374386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -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");
}

View File

@ -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("");