test: few more e2e flakes (#26278)

* test: few more e2e flakes

* fix another
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-12-29 19:58:15 -03:00
1 parent 7c373ddad6
commit ff9d88479c
7 files changed
+25 -21

No files matched your search

+2 -2
View File
@@ -113,7 +113,7 @@ test.describe("Availability", () => {
test("Schedule listing", async ({ page }) => {
await test.step("Can add a new schedule", async () => {
await page.getByTestId("new-schedule").click();
await page.getByTestId("new-schedule").first().click();
await page.locator('[id="name"]').fill("More working hours");
page.locator('[type="submit"]').click();
await expect(page.getByTestId("availablity-title")).toHaveValue("More working hours");
@@ -149,7 +149,7 @@ test.describe("Availability", () => {
await page.getByTestId("availablity-title").click();
// change availability name
await page.getByTestId("availablity-title").fill("Working Hours test");
await expect(page.getByTestId("subtitle")).toBeVisible();
await expect(page.getByTestId("subtitle").first()).toBeVisible();
await page.getByTestId(sunday).getByRole("switch").click();
await page.getByTestId(monday).first().click();
await page.getByTestId(wednesday).getByRole("switch").click();