fix: add deterministic ordering to attendee queries in booking-seats e2e tests (#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>
This commit is contained in:
Romit
2026-03-30 16:23:49 +05:30
committed by GitHub
co-authored by romitgabani1 Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent 3b4eef12a0
commit 96d78a03d2
+8 -4
View File
@@ -1,10 +1,8 @@
import { expect } from "@playwright/test";
import { v4 as uuidv4 } from "uuid";
import { randomString } from "@calcom/lib/random";
import prisma from "@calcom/prisma";
import { BookingStatus } from "@calcom/prisma/enums";
import { expect } from "@playwright/test";
import { v4 as uuidv4 } from "uuid";
import { test } from "./lib/fixtures";
import {
confirmReschedule,
@@ -43,6 +41,7 @@ test.describe("Booking with Seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -136,6 +135,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -203,6 +203,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -282,6 +283,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -475,6 +477,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});
const bookingSeats = bookingAttendees.map((attendee) => ({
@@ -522,6 +525,7 @@ test.describe("Reschedule for booking with seats", () => {
name: true,
email: true,
},
orderBy: { email: "asc" },
});
const bookingSeats = bookingAttendees.map((attendee) => ({