diff --git a/src/screens/OrganizationVenues/OrganizationVenues.spec.tsx b/src/screens/OrganizationVenues/OrganizationVenues.spec.tsx index 99ec66465f..0365c50e03 100644 --- a/src/screens/OrganizationVenues/OrganizationVenues.spec.tsx +++ b/src/screens/OrganizationVenues/OrganizationVenues.spec.tsx @@ -549,9 +549,16 @@ describe('Organisation Venues', () => { test('renders the venue list correctly', async () => { renderOrganizationVenue(link); + + // First wait for the list container to be present await waitFor(() => { - expect(screen.getByTestId('venueRow2')).toBeInTheDocument(); - expect(screen.getByTestId('venueRow1')).toBeInTheDocument(); + expect(screen.getByTestId('orgvenueslist')).toBeInTheDocument(); + }); + + // Then check for individual venue items + await waitFor(() => { + expect(screen.getByTestId('venue-item2')).toBeInTheDocument(); + expect(screen.getByTestId('venue-item1')).toBeInTheDocument(); }); }); });