Skip to content

Commit

Permalink
Fix failing test in projectStats.test.js by waiting for text
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Apr 16, 2024
1 parent e8e93dc commit 67ad269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/tests/projectStats.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('ProjectStats dashboard', () => {
expect(screen.getByText('123,456,789')).toBeInTheDocument();
expect(screen.getByText('Changesets')).toBeInTheDocument();
expect(screen.getByText('Total map edits')).toBeInTheDocument();
expect(screen.getByText('Tasks by status')).toBeInTheDocument();
expect(await screen.findByText('Tasks by status')).toBeInTheDocument();
expect(screen.getByText('Project timeline')).toBeInTheDocument();
await waitFor(() => screen.getByText('Time statistics'));
expect(screen.getByText('Time statistics')).toBeInTheDocument();
Expand Down

0 comments on commit 67ad269

Please sign in to comment.