From 1ff4f557f6bb4ff2ef249cd01f1ce80df8cc13e4 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:55:54 +0530 Subject: [PATCH] fix: flaky test (#19294) * fix: flaky test * fix another test * update --------- Co-authored-by: Eunjae Lee Co-authored-by: unknown --- apps/web/playwright/event-types.e2e.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/playwright/event-types.e2e.ts b/apps/web/playwright/event-types.e2e.ts index 2293747285..55aa7d5285 100644 --- a/apps/web/playwright/event-types.e2e.ts +++ b/apps/web/playwright/event-types.e2e.ts @@ -205,8 +205,9 @@ test.describe("Event Types tests", () => { await saveEventType(page); await gotoBookingPage(page); await selectFirstAvailableTimeSlotNextMonth(page); - - await page.locator(`[data-fob-field-name="location"] input`).fill("19199999999"); + const locationInput = page.locator(`[data-fob-field-name="location"] input`); + await locationInput.clear(); + await locationInput.fill("+19199999999"); await bookTimeSlot(page); await expect(page.locator("[data-testid=success-page]")).toBeVisible(); @@ -220,7 +221,8 @@ test.describe("Event Types tests", () => { await page.locator(`text="Organizer Phone Number"`).click(); const locationInputName = "locations[0].hostPhoneNumber"; await page.locator(`input[name="${locationInputName}"]`).waitFor(); - await page.locator(`input[name="${locationInputName}"]`).fill("19199999999"); + await page.locator(`input[name="${locationInputName}"]`).clear(); + await page.locator(`input[name="${locationInputName}"]`).fill("+19199999999"); await saveEventType(page); await gotoBookingPage(page);