Skip to content

Commit

Permalink
#2970: autoGen-talawa-admin-docs-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bint-Eve committed Jan 10, 2025
1 parent 27a253a commit 7adfb0e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/screens/OrganizationVenues/OrganizationVenues.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
});
Expand Down

0 comments on commit 7adfb0e

Please sign in to comment.