🎉 Activate by default token typography row (#10090)

* 🎉 Activate by default token typography row

* ♻️ Update test for text multiselection
This commit is contained in:
Eva Marco 2026-06-10 13:30:04 +02:00 committed by GitHub
parent 21d2037111
commit 6937e70dab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 15 deletions

View File

@ -195,6 +195,7 @@
:enable-render-wasm-dpr
:enable-token-color
:enable-token-shadow
:enable-token-typography-row
:enable-inspect-styles
:enable-feature-fdata-objects-map
:enable-feature-render-wasm

View File

@ -271,17 +271,15 @@ test("Multiselection of text and typographies", async ({ page }) => {
await expect(textSection.getByText("Mixed assets")).toBeVisible();
// Select token typography text layer
// TODO: CHANGE WHEN TOKEN TYPOGRAPHY ROW IS READY
await tokenTypographyTextLayerOne.click();
await expect(textSection).toBeVisible();
await expect(textSection.getByText("Metrophobic")).toBeVisible();
await expect(textSection.getByLabel('token-typo-one')).toBeVisible();
// Select two token typography text layer with different token typography
// TODO: CHANGE WHEN TOKEN TYPOGRAPHY ROW IS READY
await tokenTypographyTextLayerTwo.click({ modifiers: ["Control"] });
await expect(textSection).toBeVisible();
await expect(
textSection.getByTitle("Font family").getByText("Mixed Font Families"),
textSection.getByText('Mixed tokens'),
).toBeVisible();
//Select plain text layer and typography text layer together

View File

@ -186,11 +186,8 @@ test.describe("Tokens: Apply token", () => {
await tokensSidebar.getByRole("button", { name: "Full" }).click();
const fontSizeInput = workspacePage.rightSidebar.getByRole("textbox", {
name: "Font Size",
});
await expect(fontSizeInput).toBeVisible();
await expect(fontSizeInput).toHaveValue("100");
const tokenRow = workspacePage.rightSidebar.getByLabel('Full');
await expect(tokenRow).toBeVisible();
});
test("User adds shadow token with multiple shadows and applies it to shape", async ({

View File

@ -418,13 +418,9 @@ test.describe("Remapping a single token", () => {
.filter({ hasText: "Some Text" })
.click();
// Verify the shape shows the updated font size value (18)
// This proves the remapping worked and the value update propagated through the reference
const fontSizeInput = workspacePage.rightSidebar.getByRole("textbox", {
name: "Font Size",
});
await expect(fontSizeInput).toBeVisible();
await expect(fontSizeInput).toHaveValue("18");
const tokenPillSidebar = workspacePage.rightSidebar.getByLabel('paragraph-style')
await expect(tokenPillSidebar).toBeVisible();
});
});