Skip to content

Scheduling infrastructure for absolutely everyone.

fix: flaky test (#19294)

Udit Takkar1ff4f557f6bb
diff --git a/apps/web/playwright/event-types.e2e.ts b/apps/web/playwright/event-types.e2e.ts
index 22937472851..55aa7d52852 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);