🐛 Fix createToken calls missing textFieldType argument

This commit is contained in:
Juanfran 2026-05-28 09:36:33 +02:00 committed by GitHub
parent 8430358621
commit 5c5ee73f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 4 deletions

View File

@ -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",
});

View File

@ -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",

View File

@ -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",
);