From 4bccbbbb366fcc8141d0741029789d44c5538471 Mon Sep 17 00:00:00 2001 From: gitstart-calcom Date: Fri, 6 Oct 2023 16:28:40 +0000 Subject: [PATCH] Remove unnecessary changes --- .../checkbox-group-and-address-question.e2e.ts | 4 ---- .../checkbox-group-and-checkbox-group-question.e2e.ts | 4 ---- .../checkbox-group-and-checkbox-question.e2e.ts | 4 ---- .../checkbox-group-and-long-text-question.e2e.ts | 4 ---- .../checkbox-group-and-multiple-emails-question.e2e.ts | 4 ---- .../checkbox-group-and-multiselect-question.e2e.ts | 4 ---- .../checkbox-group-and-number-question.e2e.ts | 4 ---- .../checkbox-group-and-radio-group-question.e2e.ts | 4 ---- .../checkbox-group-and-select-question.e2e.ts | 4 ---- .../checkbox-group-and-short-text-question.e2e.ts | 4 ---- .../phoneQuestione2e/phone-and-address-question.e2e.ts | 4 ---- .../phone-and-checkbox-group-question.e2e.ts | 4 ---- .../phoneQuestione2e/phone-and-checkbox-question.e2e.ts | 4 ---- .../phoneQuestione2e/phone-and-long-text-question.e2e.ts | 4 ---- .../phone-and-multiple-emails-question.e2e.ts | 4 ---- .../phone-and-multiselect-question.e2e.ts | 4 ---- .../phoneQuestione2e/phone-and-number-question.e2e.ts | 4 ---- .../phone-and-radio-group-question.e2e.ts | 4 ---- .../phoneQuestione2e/phone-and-select-question.e2e.ts | 4 ---- .../phoneQuestione2e/phone-and-short-text-question.e2e.ts | 4 ---- apps/web/playwright/booking/utils/bookingUtils.ts | 8 +++++++- 21 files changed, 7 insertions(+), 81 deletions(-) diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-address-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-address-question.e2e.ts index 5383b72815..19c1a22014 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-address-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-address-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Address Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Phone and Address required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-group-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-group-question.e2e.ts index 36adfa8916..f055837c3b 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-group-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-group-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Phone Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Checkbox and Phone required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-question.e2e.ts index 9f604f1a47..c25aab9f8d 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-checkbox-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and checkbox Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Checkbox Group and checkbox required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-long-text-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-long-text-question.e2e.ts index a71effeda3..33cfcca6d2 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-long-text-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-long-text-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Long text Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Checkbox Group and Long text required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiple-emails-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiple-emails-question.e2e.ts index 5c39c60923..5cba98935f 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiple-emails-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiple-emails-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Multi email Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Checkbox Group and Multi email required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiselect-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiselect-question.e2e.ts index b18a6c7a2f..19f8431317 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiselect-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-multiselect-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and multiselect Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Checkbox Group and multiselect text required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-number-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-number-question.e2e.ts index 3517a39237..35c5c3c5e1 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-number-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-number-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Number Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Checkbox Group and Number required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-radio-group-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-radio-group-question.e2e.ts index f6c0911c2d..7fedf7afcc 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-radio-group-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-radio-group-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Radio group Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Checkbox Group and Radio group required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-select-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-select-question.e2e.ts index 158ccb0e24..dbcfd06948 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-select-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-select-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and select Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Checkbox Group and select required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-short-text-question.e2e.ts b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-short-text-question.e2e.ts index ec9cb3ecc9..d2f38e6aa7 100644 --- a/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-short-text-question.e2e.ts +++ b/apps/web/playwright/booking/checkboxGroupQuestione2e/checkbox-group-and-short-text-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Checkbox Group Question and Short text question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Checkbox Group and Short text required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-address-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-address-question.e2e.ts index 056571f858..6e3977aa46 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-address-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-address-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and Address Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Phone and Address required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-group-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-group-question.e2e.ts index dcfa63323e..11b09ee1a8 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-group-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-group-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and checkbox group Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Phone and checkbox group required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-question.e2e.ts index 7ecf116668..38d62b98c1 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-checkbox-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and checkbox Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Phone and checkbox required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-long-text-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-long-text-question.e2e.ts index 242f214bbb..e2cd090b93 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-long-text-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-long-text-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and Long text Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Phone and Long text required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiple-emails-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiple-emails-question.e2e.ts index 393e58c161..194b8c3536 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiple-emails-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiple-emails-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and Multi email Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Phone and Multi email required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiselect-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiselect-question.e2e.ts index a6119d8922..e8a6edaf87 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiselect-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-multiselect-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and multiselect Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Phone and multiselect text required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-number-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-number-question.e2e.ts index da53592b9a..b35c727de8 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-number-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-number-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and Number Question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Phone and Number required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-radio-group-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-radio-group-question.e2e.ts index 2e9f0ccff9..e4ead7a230 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-radio-group-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-radio-group-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and Radio group Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Phone and Radio group required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-select-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-select-question.e2e.ts index bb963f956b..c054c259e2 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-select-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-select-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and select Question", () => { const bookingOptions = { hasPlaceholder: false, isRequired: true }; test("Phone and select required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/phoneQuestione2e/phone-and-short-text-question.e2e.ts b/apps/web/playwright/booking/phoneQuestione2e/phone-and-short-text-question.e2e.ts index 82bac518e3..95e393d0c0 100644 --- a/apps/web/playwright/booking/phoneQuestione2e/phone-and-short-text-question.e2e.ts +++ b/apps/web/playwright/booking/phoneQuestione2e/phone-and-short-text-question.e2e.ts @@ -1,10 +1,6 @@ import { test } from "../../lib/fixtures"; import { initialCommonSteps } from "../utils/bookingUtils"; -test.describe.configure({ mode: "parallel" }); - -test.afterEach(({ users }) => users.deleteAll()); - test.describe("Booking With Phone Question and Short text question", () => { const bookingOptions = { hasPlaceholder: true, isRequired: true }; test("Phone and Short text required", async ({ page, users }) => { diff --git a/apps/web/playwright/booking/utils/bookingUtils.ts b/apps/web/playwright/booking/utils/bookingUtils.ts index e393e5d11e..cd556635fc 100644 --- a/apps/web/playwright/booking/utils/bookingUtils.ts +++ b/apps/web/playwright/booking/utils/bookingUtils.ts @@ -212,7 +212,10 @@ export const initialCommonSteps = async ( await bookingPage.getByTestId("preview-button").click(); const eventTypePage = await eventtypePromise; - // Select the first available time + while (await bookingPage.getByRole("button", { name: "View next" }).isVisible()) { + await bookingPage.getByRole("button", { name: "View next" }).click(); + } + await eventTypePage.getByTestId("time").first().click(); fillAndConfirmBooking( eventTypePage, @@ -228,6 +231,9 @@ export const initialCommonSteps = async ( }; const rescheduleAndCancel = async (eventTypePage: Page) => { await eventTypePage.getByText("Reschedule").click(); + while (await eventTypePage.getByRole("button", { name: "View next" }).isVisible()) { + await eventTypePage.getByRole("button", { name: "View next" }).click(); + } await eventTypePage.getByTestId("time").first().click(); await eventTypePage.getByPlaceholder(reschedulePlaceholderText).click(); await eventTypePage.getByPlaceholder(reschedulePlaceholderText).fill("Test reschedule");