Scheduling infrastructure for absolutely everyone.
test: replace text locators with data-testid selectors in team filter tests (#27148)
Keith Williams2ad3abd9097a
diff --git a/apps/web/playwright/bookings-list.e2e.ts b/apps/web/playwright/bookings-list.e2e.tsindex b97c04968bf..94690f731c7 100644--- a/apps/web/playwright/bookings-list.e2e.ts+++ b/apps/web/playwright/bookings-list.e2e.ts@@ -625,7 +625,9 @@ test.describe("Bookings", () => {return await bookingListItems.count();}).toBe(1);- await expect(bookingListItems.first().locator(`text=${teamBooking!.title}`)).toBeVisible();+ await expect(bookingListItems.first().getByTestId("title-and-attendees")).toContainText(+ teamBooking!.title+ );});test("Team filter shows bookings for managed event types (child events)", async ({@@ -674,14 +676,16 @@ test.describe("Bookings", () => {const upcomingBookingsTable = page.locator('[data-testid="upcoming-bookings"]');const bookingListItems = upcomingBookingsTable.locator('[data-testid="booking-item"]');-+await expect.poll(async () => {return await bookingListItems.count();}).toBe(1);- await expect(bookingListItems.first().locator(`text=${managedEventBooking!.title}`)).toBeVisible();+ await expect(bookingListItems.first().getByTestId("title-and-attendees")).toContainText(+ managedEventBooking!.title+ );});test("Team filter excludes bookings from other teams", async ({ page, users, bookings }) => {