From 6e43291350df70c253f60296d51c001d9ea04be3 Mon Sep 17 00:00:00 2001 From: Udit Takkar Date: Thu, 26 Oct 2023 17:02:42 +0530 Subject: [PATCH] test: display public location --- apps/web/playwright/event-types.e2e.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/event-types.e2e.ts b/apps/web/playwright/event-types.e2e.ts index 0d891ac202..1bf95b69c3 100644 --- a/apps/web/playwright/event-types.e2e.ts +++ b/apps/web/playwright/event-types.e2e.ts @@ -300,16 +300,18 @@ test.describe("Event Types tests", () => { await checkDisplayLocation(page); await unCheckDisplayLocation(page); + await page.locator("[data-testid=add-location]").click(); + const testUrl2 = "https://cal.com/ai"; await page.locator(`text="Link meeting"`).last().click(); + await page.locator(`input[name="${locationInputName(1)}"]`).waitFor(); await page.locator(`input[name="${locationInputName(1)}"]`).fill(testUrl2); await checkDisplayLocation(page); await unCheckDisplayLocation(page); - // Remove both of the locations + // Remove Both of the locations const removeButtomId = "delete-locations.0.type"; await page.getByTestId(removeButtomId).click(); - await page.getByTestId(removeButtomId).click(); // Add Multiple Organizer Phone Number options @@ -324,6 +326,7 @@ test.describe("Event Types tests", () => { await page.locator("[data-testid=display-location]").last().check(); await checkDisplayLocation(page); await unCheckDisplayLocation(page); + await page.locator("[data-testid=add-location]").click(); const testPhoneInputValue2 = "9188888888"; await page.locator(`text="Organizer Phone Number"`).last().click();