Skip to content

Scheduling infrastructure for absolutely everyone.

Skip flaky tests for now

zomars67bb4cf5ca94
diff --git a/apps/web/playwright/booking-seats.e2e.ts b/apps/web/playwright/booking-seats.e2e.ts
index 723c7866ad4..f4ae4bb2e4d 100644
--- a/apps/web/playwright/booking-seats.e2e.ts
+++ b/apps/web/playwright/booking-seats.e2e.ts
@@ -154,67 +154,67 @@ testBothBookers.describe("Booking with Seats", (bookerVariant) => {
expect(oldBooking?.seatsReferences.length).toBe(2);
});
- test("Should reschedule booking with seats and if everyone rescheduled it should be deleted", async ({
- page,
- users,
- bookings,
- }) => {
- const { booking } = await createUserWithSeatedEventAndAttendees({ users, bookings }, [
- { name: "John First", email: "[email protected]", timeZone: "Europe/Berlin" },
- { name: "Jane Second", email: "[email protected]", timeZone: "Europe/Berlin" },
- ]);
+ // FIXME: https://github.com/calcom/cal.com/issues/9193
+ test.fixme(
+ "Should reschedule booking with seats and if everyone rescheduled it should be deleted",
+ async ({ page, users, bookings }) => {
+ const { booking } = await createUserWithSeatedEventAndAttendees({ users, bookings }, [
+ { name: "John First", email: "[email protected]", timeZone: "Europe/Berlin" },
+ { name: "Jane Second", email: "[email protected]", timeZone: "Europe/Berlin" },
+ ]);
+
+ const bookingAttendees = await prisma.attendee.findMany({
+ where: { bookingId: booking.id },
+ select: {
+ id: true,
+ },
+ });
- const bookingAttendees = await prisma.attendee.findMany({
- where: { bookingId: booking.id },
- select: {
- id: true,
- },
- });
+ const bookingSeats = [
+ { bookingId: booking.id, attendeeId: bookingAttendees[0].id, referenceUid: uuidv4() },
+ { bookingId: booking.id, attendeeId: bookingAttendees[1].id, referenceUid: uuidv4() },
+ ];
- const bookingSeats = [
- { bookingId: booking.id, attendeeId: bookingAttendees[0].id, referenceUid: uuidv4() },
- { bookingId: booking.id, attendeeId: bookingAttendees[1].id, referenceUid: uuidv4() },
- ];
+ await prisma.bookingSeat.createMany({
+ data: bookingSeats,
+ });
- await prisma.bookingSeat.createMany({
- data: bookingSeats,
- });
+ const references = await prisma.bookingSeat.findMany({
+ where: { bookingId: booking.id },
+ });
- const references = await prisma.bookingSeat.findMany({
- where: { bookingId: booking.id },
- });
-
- await page.goto(`/reschedule/${references[0].referenceUid}`);
+ await page.goto(`/reschedule/${references[0].referenceUid}`);
- await selectFirstAvailableTimeSlotNextMonth(page);
+ await selectFirstAvailableTimeSlotNextMonth(page);
- await page.locator('[data-testid="confirm-reschedule-button"]').click();
+ await page.locator('[data-testid="confirm-reschedule-button"]').click();
- await page.waitForURL(/.*booking/);
+ await page.waitForURL(/.*booking/);
- await page.goto(`/reschedule/${references[1].referenceUid}`);
+ await page.goto(`/reschedule/${references[1].referenceUid}`);
- await selectFirstAvailableTimeSlotNextMonth(page);
+ await selectFirstAvailableTimeSlotNextMonth(page);
- await page.locator('[data-testid="confirm-reschedule-button"]').click();
+ await page.locator('[data-testid="confirm-reschedule-button"]').click();
- // Using waitForUrl here fails the assertion `expect(oldBooking?.status).toBe(BookingStatus.CANCELLED);` probably because waitForUrl is considered complete before waitForNavigation and till that time the booking is not cancelled
- await page.waitForNavigation({ url: /.*booking/ });
+ // Using waitForUrl here fails the assertion `expect(oldBooking?.status).toBe(BookingStatus.CANCELLED);` probably because waitForUrl is considered complete before waitForNavigation and till that time the booking is not cancelled
+ await page.waitForNavigation({ url: /.*booking/ });
- // Should expect old booking to be cancelled
- const oldBooking = await prisma.booking.findFirst({
- where: { uid: booking.uid },
- include: {
- seatsReferences: true,
- attendees: true,
- eventType: {
- include: { users: true, hosts: true },
+ // Should expect old booking to be cancelled
+ const oldBooking = await prisma.booking.findFirst({
+ where: { uid: booking.uid },
+ include: {
+ seatsReferences: true,
+ attendees: true,
+ eventType: {
+ include: { users: true, hosts: true },
+ },
},
- },
- });
+ });
- expect(oldBooking?.status).toBe(BookingStatus.CANCELLED);
- });
+ expect(oldBooking?.status).toBe(BookingStatus.CANCELLED);
+ }
+ );
test("Should cancel with seats and have no attendees and cancelled", async ({
page,