Skip to content

Commit

Permalink
Fix act warning in pageContainer test
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Apr 24, 2023
1 parent 9996d02 commit 13e3861
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ describe('PageContainer - Tests', () => {

renderComponent();

expect(screen.queryByTestId('styled-routing')).toBeNull();
await waitFor(() => {
expect(screen.queryByTestId('styled-routing')).toBeNull();
});
});

it('set view to card if cardview stored in localstorage', () => {
Expand Down

0 comments on commit 13e3861

Please sign in to comment.