fix: update button role in end-to-end test (#2936)

refactor: update button role in end-to-end test

Update the button role in the end-to-end test to use "Check & Save" instead of "Save".
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-07-24 21:16:08 -03:00 committed by GitHub
commit a22b76534b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ class CustomComponent(Component):
await page.locator("textarea").press("Control+a");
await page.locator("textarea").fill(customCodeWithError);
await page.getByText("Save").click();
await page.getByRole("button", { name: "Check & Save" }).click();
await page.waitForTimeout(1000);