diff --git a/apps/web/playwright/booking/multiSelectQuestion.e2e.ts b/apps/web/playwright/booking/multiSelectQuestion.e2e.ts index 7a66ed9e33..f0265a19f2 100644 --- a/apps/web/playwright/booking/multiSelectQuestion.e2e.ts +++ b/apps/web/playwright/booking/multiSelectQuestion.e2e.ts @@ -13,13 +13,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Address Question", () => { test("Multi Select required and Address required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("address", "address-test", "address test", true, "address test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -39,13 +33,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and Address not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("address", "address-test", "address test", false, "address test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -67,13 +55,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and checkbox group Question", () => { test("Multi Select required and checkbox group required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("checkbox", "checkbox-test", "checkbox test", true); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -93,13 +75,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and checkbox group not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("checkbox", "checkbox-test", "checkbox test", false); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -121,13 +97,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and checkbox Question", () => { test("Multi Select required and checkbox required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("boolean", "boolean-test", "boolean test", true); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -146,13 +116,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = await bookingPage.assertBookingCanceled(eventTypePage); }); test("Multi Select and checkbox not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("boolean", "boolean-test", "boolean test", false); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -174,13 +138,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Long text Question", () => { test("Multi Select required and Long text required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("textarea", "textarea-test", "textarea test", true, "textarea test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -200,13 +158,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and Long text not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("textarea", "textarea-test", "textarea test", false, "textarea test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -228,13 +180,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Multi email Question", () => { test("Multi Select required and Multi email required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion( "multiemail", "multiemail-test", @@ -260,13 +206,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and Multi email not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion( "multiemail", "multiemail-test", @@ -294,13 +234,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Phone Question", () => { test("Multi Select required and multiselect text required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("phone", "phone-test", "phone test", true, "phone test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -320,13 +254,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and multiselect text not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", false); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -348,13 +276,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Number Question", () => { test("Multi Select required and Number required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("number", "number-test", "number test", true, "number test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -374,13 +296,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and Number not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("number", "number-test", "number test", false, "number test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -402,13 +318,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Radio group Question", () => { test("Multi Select required and Radio group required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("radio", "radio-test", "radio test", true); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -428,13 +338,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and Radio group not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("radio", "radio-test", "radio test", false); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -456,13 +360,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and select Question", () => { test("Multi Select required and select required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("select", "select-test", "select test", true, "select test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -482,13 +380,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and select not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("select", "select-test", "select test", false, "select test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -510,13 +402,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = test.describe("Booking With Multi Select Question and Short text question", () => { test("Multi Select required and Short text required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("text", "text-test", "text test", true, "text test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType(); @@ -536,13 +422,7 @@ test.describe("Booking With Multi Select Question and Each Other Question", () = }); test("Multi Select and Short text not required", async ({ bookingPage }) => { - await bookingPage.addQuestion( - "multiselect", - "multiselect-test", - "multiselect test", - true, - "multiselect test" - ); + await bookingPage.addQuestion("multiselect", "multiselect-test", "multiselect test", true); await bookingPage.addQuestion("text", "text-test", "text test", false, "text test"); await bookingPage.updateEventType(); const eventTypePage = await bookingPage.previewEventType();