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:
parent
ab72794994
commit
ef61f9c7aa
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue