Merge branch 'staging' into develop

This commit is contained in:
Andrey Antukh
2025-10-15 11:22:03 +02:00
11 changed files with 369 additions and 122 deletions

View File

@@ -283,3 +283,40 @@ test("BUG 11177 - Font size input not showing 'mixed' when needed", async ({
await expect(fontSizeInput).toHaveValue("");
await expect(fontSizeInput).toHaveAttribute("placeholder", "Mixed");
});
test("BUG 12287 Fix identical text fills not being added/removed", async ({
page,
}) => {
const workspace = new WorkspacePage(page);
await workspace.setupEmptyFile();
await workspace.mockRPC(/get\-file\?/, "design/get-file-12287.json");
await workspace.goToWorkspace({
fileId: "4bdef584-e28a-8155-8006-f3f8a71b382e",
pageId: "4bdef584-e28a-8155-8006-f3f8a71b382f",
});
await workspace.clickLeafLayer("Lorem ipsum");
const addFillButton = workspace.page.getByRole("button", {
name: "Add fill",
});
await addFillButton.click();
await addFillButton.click();
await addFillButton.click();
await addFillButton.click();
await expect(
workspace.page.getByRole("button", { name: "#B1B2B5" }),
).toHaveCount(4);
await workspace.page
.getByRole("button", { name: "Remove color" })
.first()
.click();
await expect(
workspace.page.getByRole("button", { name: "#B1B2B5" }),
).toHaveCount(3);
});