feat: Round robin, when attendee books same timeslot return original booking (#21455)
This commit is contained in:
1 parent
16ea15076d
commit
a6d37fd167
4 files changed
+168
-11
No files matched your search
@@ -333,7 +333,7 @@ test.describe("Bookings", () => {
|
||||
// Second booking - should get a different host
|
||||
await page.goto(`/org/${org.slug}/${team.slug}/${teamEvent.slug}`);
|
||||
await selectFirstAvailableTimeSlotNextMonth(page);
|
||||
await bookTimeSlot(page);
|
||||
await bookTimeSlot(page, { email: "[email protected]" });
|
||||
await expect(page.getByTestId("success-page")).toBeVisible();
|
||||
const secondHost = await page.getByTestId("booking-host-name").textContent();
|
||||
expect(secondHost).not.toBeNull();
|
||||
@@ -342,7 +342,7 @@ test.describe("Bookings", () => {
|
||||
// Third booking - should get a different host
|
||||
await page.goto(`/org/${org.slug}/${team.slug}/${teamEvent.slug}`);
|
||||
await selectFirstAvailableTimeSlotNextMonth(page);
|
||||
await bookTimeSlot(page);
|
||||
await bookTimeSlot(page, { email: "[email protected]" });
|
||||
await expect(page.getByTestId("success-page")).toBeVisible();
|
||||
const thirdHost = await page.getByTestId("booking-host-name").textContent();
|
||||
expect(thirdHost).not.toBeNull();
|
||||
@@ -352,7 +352,7 @@ test.describe("Bookings", () => {
|
||||
// Fourth booking - should get a different host
|
||||
await page.goto(`/org/${org.slug}/${team.slug}/${teamEvent.slug}`);
|
||||
await selectFirstAvailableTimeSlotNextMonth(page);
|
||||
await bookTimeSlot(page);
|
||||
await bookTimeSlot(page, { email: "[email protected]" });
|
||||
await expect(page.getByTestId("success-page")).toBeVisible();
|
||||
const fourthHost = await page.getByTestId("booking-host-name").textContent();
|
||||
expect(fourthHost).not.toBeNull();
|
||||
|
||||
Reference in new issue
Block a user