mirror of
https://github.com/penpot/penpot.git
synced 2026-05-30 04:08:08 +00:00
🐛 Fix createToken calls missing textFieldType argument
This commit is contained in:
parent
8430358621
commit
5c5ee73f2d
@ -1788,8 +1788,8 @@ test("BUG: 14234, Numeric input token filtering must be case sensitive", async (
|
||||
await tokensTabButton.click();
|
||||
await unfoldTokenType(tokensSidebar, "dimensions");
|
||||
|
||||
await createToken(page, "Dimensions", "Dim-up", "Value", "20");
|
||||
await createToken(page, "Dimensions", "dim-up", "Value", "10");
|
||||
await createToken(page, "Dimensions", "Dim-up", "Value", "combobox", "20");
|
||||
await createToken(page, "Dimensions", "dim-up", "Value", "combobox", "10");
|
||||
const measuresSection = page.getByRole("region", {
|
||||
name: "shape-measures-section",
|
||||
});
|
||||
|
||||
@ -2131,8 +2131,15 @@ test("BUG: 1425 Token is not highlighted in red when value references a token in
|
||||
await expect(tokensSidebar).toBeVisible();
|
||||
|
||||
await unfoldTokenType(tokensSidebar, "Border radius");
|
||||
await createToken(page, "Border radius", "base-radius", "Value", "20");
|
||||
await createToken(page, "Border radius", "ref-base", "Value", "{base-radius}");
|
||||
await createToken(page, "Border radius", "base-radius", "Value", "textbox", "20");
|
||||
await createToken(
|
||||
page,
|
||||
"Border radius",
|
||||
"ref-base",
|
||||
"Value",
|
||||
"textbox",
|
||||
"{base-radius}",
|
||||
);
|
||||
|
||||
const refTokenPill = tokensSidebar.getByRole("button", {
|
||||
name: "ref-base",
|
||||
|
||||
@ -665,6 +665,7 @@ test.describe("Remapping group of tokens", () => {
|
||||
"Color",
|
||||
"brand.primary",
|
||||
"Value",
|
||||
"textbox",
|
||||
"#0000FF",
|
||||
);
|
||||
await createToken(
|
||||
@ -672,6 +673,7 @@ test.describe("Remapping group of tokens", () => {
|
||||
"Color",
|
||||
"brand.secondary",
|
||||
"Value",
|
||||
"textbox",
|
||||
"#0055FF",
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user