🐛 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

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();