Skip to content

Commit 96d78a0

Browse files
fix: add deterministic ordering to attendee queries in booking-seats e2e tests (calcom#28672)
* fix: add deterministic ordering to attendee queries in booking-seats e2e tests Co-Authored-By: romitgabani1 <romitgabani1.work@gmail.com> * fix: revert secondAttendeeSeat change, keep original references query per review feedback Co-Authored-By: romitgabani1 <romitgabani1.work@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 3b4eef1 commit 96d78a0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

apps/web/playwright/booking-seats.e2e.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { expect } from "@playwright/test";
2-
import { v4 as uuidv4 } from "uuid";
3-
41
import { randomString } from "@calcom/lib/random";
52
import prisma from "@calcom/prisma";
63
import { BookingStatus } from "@calcom/prisma/enums";
7-
4+
import { expect } from "@playwright/test";
5+
import { v4 as uuidv4 } from "uuid";
86
import { test } from "./lib/fixtures";
97
import {
108
confirmReschedule,
@@ -43,6 +41,7 @@ test.describe("Booking with Seats", () => {
4341
name: true,
4442
email: true,
4543
},
44+
orderBy: { email: "asc" },
4645
});
4746

4847
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -136,6 +135,7 @@ test.describe("Reschedule for booking with seats", () => {
136135
name: true,
137136
email: true,
138137
},
138+
orderBy: { email: "asc" },
139139
});
140140

141141
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -203,6 +203,7 @@ test.describe("Reschedule for booking with seats", () => {
203203
name: true,
204204
email: true,
205205
},
206+
orderBy: { email: "asc" },
206207
});
207208

208209
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -282,6 +283,7 @@ test.describe("Reschedule for booking with seats", () => {
282283
name: true,
283284
email: true,
284285
},
286+
orderBy: { email: "asc" },
285287
});
286288

287289
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -475,6 +477,7 @@ test.describe("Reschedule for booking with seats", () => {
475477
name: true,
476478
email: true,
477479
},
480+
orderBy: { email: "asc" },
478481
});
479482

480483
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -522,6 +525,7 @@ test.describe("Reschedule for booking with seats", () => {
522525
name: true,
523526
email: true,
524527
},
528+
orderBy: { email: "asc" },
525529
});
526530

527531
const bookingSeats = bookingAttendees.map((attendee) => ({

0 commit comments

Comments
 (0)