mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 00:36:37 +02: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");
|
const nameField = tokensUpdateCreateModal.getByLabel("Name");
|
||||||
await nameField.pressSequentially(".changed");
|
await nameField.pressSequentially(".changed");
|
||||||
|
|
||||||
const submitButton = tokensUpdateCreateModal.getByRole("button", {
|
await nameField.press("Enter");
|
||||||
name: "Save",
|
|
||||||
});
|
|
||||||
await expect(submitButton).toBeEnabled();
|
|
||||||
await submitButton.click();
|
|
||||||
|
|
||||||
await expect(tokensUpdateCreateModal).not.toBeVisible();
|
await expect(tokensUpdateCreateModal).not.toBeVisible();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue