mirror of
https://github.com/penpot/penpot.git
synced 2026-09-19 02:16:14 +00:00
🐛 Makes the CI more stable (#11698)
This commit is contained in:
parent
66876f16b2
commit
8d69374386
@ -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");
|
||||
}
|
||||
|
||||
@ -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("");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user