Skip to content

Commit 1ff4f55

Browse files
Udit-takkareunjae-leeanikdhabal
authored
fix: flaky test (#19294)
* fix: flaky test * fix another test * update --------- Co-authored-by: Eunjae Lee <[email protected]> Co-authored-by: unknown <[email protected]>
1 parent 7e2c0bd commit 1ff4f55

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/web/playwright/event-types.e2e.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ test.describe("Event Types tests", () => {
205205
await saveEventType(page);
206206
await gotoBookingPage(page);
207207
await selectFirstAvailableTimeSlotNextMonth(page);
208-
209-
await page.locator(`[data-fob-field-name="location"] input`).fill("19199999999");
208+
const locationInput = page.locator(`[data-fob-field-name="location"] input`);
209+
await locationInput.clear();
210+
await locationInput.fill("+19199999999");
210211
await bookTimeSlot(page);
211212

212213
await expect(page.locator("[data-testid=success-page]")).toBeVisible();
@@ -220,7 +221,8 @@ test.describe("Event Types tests", () => {
220221
await page.locator(`text="Organizer Phone Number"`).click();
221222
const locationInputName = "locations[0].hostPhoneNumber";
222223
await page.locator(`input[name="${locationInputName}"]`).waitFor();
223-
await page.locator(`input[name="${locationInputName}"]`).fill("19199999999");
224+
await page.locator(`input[name="${locationInputName}"]`).clear();
225+
await page.locator(`input[name="${locationInputName}"]`).fill("+19199999999");
224226

225227
await saveEventType(page);
226228
await gotoBookingPage(page);

0 commit comments

Comments
 (0)