mirror of
https://github.com/suitenumerique/people.git
synced 2026-08-17 21:25:52 +02:00
💚(frontend) fix using side effects within waitFor callback
New lint error detected.
This commit is contained in:
+1
-3
@@ -115,9 +115,7 @@ describe('MailBoxesView', () => {
|
||||
wrapper: AppWrapper,
|
||||
});
|
||||
|
||||
await waitFor(async () => {
|
||||
await userEvent.click(screen.getByTestId('button-new-mailbox'));
|
||||
});
|
||||
await userEvent.click(screen.getByTestId('button-new-mailbox'));
|
||||
|
||||
await waitFor(async () => {
|
||||
expect(await screen.findByText('New email account')).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user