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(); });