0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-23 05:01:23 -05:00

🐛 Fix CI breaking * (#5690)

* A rerender introduced by the warning message for token renames shifts
the submit button, which caused playwright to lose the element.
This commit is contained in:
Florian Schrödl 2025-01-27 18:51:10 +01:00 committed by GitHub
parent ab72794994
commit ef61f9c7aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,11 +171,7 @@ test.describe("Tokens: Tokens Tab", () => {
const nameField = tokensUpdateCreateModal.getByLabel("Name");
await nameField.pressSequentially(".changed");
const submitButton = tokensUpdateCreateModal.getByRole("button", {
name: "Save",
});
await expect(submitButton).toBeEnabled();
await submitButton.click();
await nameField.press("Enter");
await expect(tokensUpdateCreateModal).not.toBeVisible();