From 9f3a88223d79c617d0174753f093c66706c8077f Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 16 Apr 2026 00:29:25 +0200 Subject: [PATCH] fix: update ReservationModal test for check-in time range fields Use getAllByText for check-in labels since both "Check-in" and "Check-in until" now match the /Check-in/i pattern. --- client/src/components/Planner/ReservationModal.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/Planner/ReservationModal.test.tsx b/client/src/components/Planner/ReservationModal.test.tsx index 8685f983..0ec10cdf 100644 --- a/client/src/components/Planner/ReservationModal.test.tsx +++ b/client/src/components/Planner/ReservationModal.test.tsx @@ -134,7 +134,8 @@ describe('ReservationModal', () => { it('FE-PLANNER-RESMODAL-008: hotel type shows check-in/check-out time fields', async () => { render(); await userEvent.click(screen.getByRole('button', { name: /Accommodation/i })); - expect(screen.getByText(/Check-in/i)).toBeInTheDocument(); + const checkInLabels = screen.getAllByText(/Check-in/i); + expect(checkInLabels.length).toBeGreaterThanOrEqual(1); expect(screen.getByText(/Check-out/i)).toBeInTheDocument(); });