mirror of
https://github.com/penpot/penpot.git
synced 2026-06-10 17:32:38 +00:00
🎉 Activate by default token typography row (#10090)
* 🎉 Activate by default token typography row * ♻️ Update test for text multiselection
This commit is contained in:
parent
21d2037111
commit
6937e70dab
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 ({
|
||||
|
||||
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user