Files
calendar/apps/web/playwright/managedBooking/advancedOptions.e2e.ts
T
9422e28598 test: check all advanced options in a managed event-type (teste2e-managedOptions) (#12294)
* check all advanced options in a managed event-type

* Delete apps/web/playwright/booking/managedBookingAllQuestion.e2e.ts

* Delete apps/web/playwright/managedBooking/allQuestions.e2e.ts

* Refactor

* Refactor

* check all advanced options in a managed event-type

* check all advanced options in a managed event-type

* Update regularBookings.ts

* Update regularBookings.ts

---------

Co-authored-by: gitstart-calcom <gitstart-calcom@users.noreply.github.com>
Co-authored-by: GitStart-Cal.com <121884634+gitstart-calcom@users.noreply.github.com>
Co-authored-by: gitstart-calcom <gitstart@users.noreply.github.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
2024-01-27 07:50:38 -03:00

44 lines
1.6 KiB
TypeScript

import { test } from "../lib/fixtures";
test.beforeEach(async ({ page, users, bookingPage }) => {
const teamEventTitle = "Test Managed Event Type";
const userFixture = await users.create(
{ name: "testuser" },
{ hasTeam: true, schedulingType: "MANAGED", teamEventTitle }
);
await userFixture.apiLogin();
await page.goto("/event-types");
await bookingPage.goToEventType(teamEventTitle);
await bookingPage.goToTab("event_advanced_tab_title");
});
test.describe("Check advanced options in a managed team event type", () => {
test("Check advanced options in a managed team event type without offer seats", async ({ bookingPage }) => {
await bookingPage.checkRequiresConfirmation();
await bookingPage.checkRequiresBookerEmailVerification();
await bookingPage.checkHideNotes();
await bookingPage.checkRedirectOnBooking();
await bookingPage.checkEnablePrivateUrl();
await bookingPage.checkLockTimezone();
await bookingPage.updateEventType();
await bookingPage.goToEventTypesPage();
await bookingPage.checkEventType();
});
test("Check advanced options in a managed team event type with offer seats", async ({ bookingPage }) => {
await bookingPage.checkRequiresConfirmation();
await bookingPage.checkRequiresBookerEmailVerification();
await bookingPage.checkHideNotes();
await bookingPage.checkRedirectOnBooking();
await bookingPage.checkEnablePrivateUrl();
await bookingPage.toggleOfferSeats();
await bookingPage.checkLockTimezone();
await bookingPage.updateEventType();
await bookingPage.goToEventTypesPage();
await bookingPage.checkEventType();
});
});