mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
♻️ Replace token forms (#7759)
* 🎉 Create dimensions form * 🎉 Create text-case form * 🎉 Create color form * ♻️ Remove unused code on form file
This commit is contained in:
@@ -307,7 +307,7 @@ test.describe("Tokens: Tokens Tab", () => {
|
||||
const nameField = tokensUpdateCreateModal.getByLabel("Name");
|
||||
await nameField.pressSequentially(".changed");
|
||||
|
||||
await nameField.press("Enter");
|
||||
await tokensUpdateCreateModal.getByRole("button", {name: "Save"}).click();
|
||||
|
||||
await expect(tokensUpdateCreateModal).not.toBeVisible();
|
||||
|
||||
@@ -501,8 +501,9 @@ test.describe("Tokens: Tokens Tab", () => {
|
||||
|
||||
// Clearing the input field should pick hex
|
||||
await valueField.fill("");
|
||||
// TODO: We need to fix this translation
|
||||
await expect(
|
||||
tokensUpdateCreateModal.getByText("Token value cannot be empty"),
|
||||
tokensUpdateCreateModal.getByText("Empty field"),
|
||||
).toBeVisible();
|
||||
await valueSaturationSelector.click({ position: { x: 50, y: 50 } });
|
||||
await expect(valueField).toHaveValue(/^#[A-Fa-f\d]+$/);
|
||||
|
||||
Reference in New Issue
Block a user