From 96d78a03d23f1e4c1e1b2d1869242ae91f992b6f Mon Sep 17 00:00:00 2001 From: Romit <85230081+romitg2@users.noreply.github.com> Date: Mon, 30 Mar 2026 16:23:49 +0530 Subject: [PATCH] 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 * fix: revert secondAttendeeSeat change, keep original references query per review feedback Co-Authored-By: romitgabani1 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- apps/web/playwright/booking-seats.e2e.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/web/playwright/booking-seats.e2e.ts b/apps/web/playwright/booking-seats.e2e.ts index a56355a67c..8b74780610 100644 --- a/apps/web/playwright/booking-seats.e2e.ts +++ b/apps/web/playwright/booking-seats.e2e.ts @@ -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) => ({