fix: flaky test (#19294)
* fix: flaky test * fix another test * update --------- Co-authored-by: Eunjae Lee <hey@eunjae.dev> Co-authored-by: unknown <adhabal2002@gmail.com>
This commit is contained in:
co-authored by
Eunjae Lee
unknown
parent
7e2c0bd29e
commit
1ff4f557f6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user