From 269ed87db47d1c915093d53a8efaf2147dff8064 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Wed, 11 Feb 2026 09:25:38 +0530 Subject: [PATCH] fix: use unique UIDs in seated slots E2E tests to prevent flaky uid collisions (#27847) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../controllers/slots.controller.e2e-spec.ts | 6 +++--- .../e2e/user-event-type-slots.controller.e2e-spec.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.e2e-spec.ts b/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.e2e-spec.ts index 2c43e93107..b1634ca183 100644 --- a/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.e2e-spec.ts +++ b/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.e2e-spec.ts @@ -468,7 +468,7 @@ describe("Slots 2024-04-15 Endpoints", () => { it("should do a booking and slot should not be available at that time", async () => { const startTime = "2050-09-05T11:00:00.000Z"; const booking = await bookingsRepositoryFixture.create({ - uid: `booking-uid-${eventTypeId}`, + uid: `booking-uid-${randomString()}`, title: "booking title", startTime, endTime: "2050-09-05T12:00:00.000Z", @@ -515,7 +515,7 @@ describe("Slots 2024-04-15 Endpoints", () => { it("should do a booking for seated event and slot should show attendees count and bookingUid", async () => { const startTime = "2050-09-05T11:00:00.000Z"; const booking = await bookingsRepositoryFixture.create({ - uid: `booking-uid-${seatedEventTypeId}`, + uid: `booking-uid-${randomString()}`, title: "booking title", startTime, endTime: "2050-09-05T12:00:00.000Z", @@ -598,7 +598,7 @@ describe("Slots 2024-04-15 Endpoints", () => { it("should do a booking for seated event and slot should show attendees count and bookingUid in range format", async () => { const startTime = "2050-09-05T11:00:00.000Z"; const booking = await bookingsRepositoryFixture.create({ - uid: `booking-uid-${seatedEventTypeId}`, + uid: `booking-uid-${randomString()}`, title: "booking title", startTime, endTime: "2050-09-05T12:00:00.000Z", diff --git a/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/e2e/user-event-type-slots.controller.e2e-spec.ts b/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/e2e/user-event-type-slots.controller.e2e-spec.ts index dab8302cbc..f53ed224e6 100644 --- a/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/e2e/user-event-type-slots.controller.e2e-spec.ts +++ b/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/e2e/user-event-type-slots.controller.e2e-spec.ts @@ -787,7 +787,7 @@ describe("Slots 2024-09-04 Endpoints", () => { it("should do a booking and slot should not be available at that time", async () => { const startTime = "2050-09-05T11:00:00.000Z"; const booking = await bookingsRepositoryFixture.create({ - uid: `booking-uid-${eventTypeId}`, + uid: `booking-uid-${randomString()}`, title: "booking title", startTime, endTime: "2050-09-05T12:00:00.000Z", @@ -832,7 +832,7 @@ describe("Slots 2024-09-04 Endpoints", () => { it("should do a booking for seated event and slot should show attendees count and bookingUid", async () => { const startTime = "2050-09-05T11:00:00.000Z"; const booking = await bookingsRepositoryFixture.create({ - uid: `booking-uid-${seatedEventType.id}`, + uid: `booking-uid-${randomString()}`, title: "booking title", startTime, endTime: "2050-09-05T12:00:00.000Z", @@ -961,7 +961,7 @@ describe("Slots 2024-09-04 Endpoints", () => { it("should do a booking for seated event and slot should show attendees count and bookingUid and return range format", async () => { const startTime = "2050-09-05T11:00:00.000Z"; const booking = await bookingsRepositoryFixture.create({ - uid: `booking-uid-${seatedEventType.id}`, + uid: `booking-uid-${randomString()}`, title: "booking title", startTime, endTime: "2050-09-05T12:00:00.000Z",