diff --git a/apps/web/playwright/dynamic-booking-pages.e2e.ts b/apps/web/playwright/dynamic-booking-pages.e2e.ts index d66979dbd9..eddb68be20 100644 --- a/apps/web/playwright/dynamic-booking-pages.e2e.ts +++ b/apps/web/playwright/dynamic-booking-pages.e2e.ts @@ -9,10 +9,7 @@ import { test.afterEach(({ users }) => users.deleteAll()); -// Due to some reason for Dynamic booking cancellation, daily video api_key is not set which causes cancellation to fail. -// This test is skipped until the issue is resolved in GH actions. -// eslint-disable-next-line playwright/no-skipped-test -test.skip("dynamic booking", async ({ page, users }) => { +test("dynamic booking", async ({ page, users }) => { const pro = await users.create(); await pro.apiLogin(); @@ -20,10 +17,13 @@ test.skip("dynamic booking", async ({ page, users }) => { await page.goto(`/${pro.username}+${free.username}`); await test.step("book an event first day in next month", async () => { - // Click first event type - await page.click('[data-testid="event-type-link"]'); await selectFirstAvailableTimeSlotNextMonth(page); + + // Fill what is this meeting about? title + await page.locator('[name="title"]').fill("Test meeting"); + await bookTimeSlot(page); + await expect(page.locator("[data-testid=success-page]")).toBeVisible(); }); @@ -37,7 +37,8 @@ test.skip("dynamic booking", async ({ page, users }) => { return !!bookingId; }); await selectSecondAvailableTimeSlotNextMonth(page); - // --- fill form + + // No need to fill fields since they should be already filled await page.locator('[data-testid="confirm-reschedule-button"]').click(); await page.waitForURL((url) => { return url.pathname.startsWith("/booking"); diff --git a/packages/features/bookings/lib/get-booking.ts b/packages/features/bookings/lib/get-booking.ts index b157b07fe2..f6058a1aa5 100644 --- a/packages/features/bookings/lib/get-booking.ts +++ b/packages/features/bookings/lib/get-booking.ts @@ -119,8 +119,8 @@ export const getBookingForReschedule = async (uid: string) => { }, }); - // If no booking is found via the uid, it's probably a booking seat, - // which we query next. + // If no booking is found via the uid, it's probably a booking seat + // that its being rescheduled, which we query next. let attendeeEmail: string | null = null; if (!theBooking) { const bookingSeat = await prisma.bookingSeat.findFirst({