💚(frontend) fix using side effects within waitFor callback

New lint error detected.
This commit is contained in:
Quentin BEY
2025-11-04 15:27:18 +01:00
committed by BEY Quentin
parent 490fdd2ed4
commit 513dbe6f83

View File

@@ -115,9 +115,7 @@ describe('MailBoxesView', () => {
wrapper: AppWrapper, wrapper: AppWrapper,
}); });
await waitFor(async () => { await userEvent.click(screen.getByTestId('button-new-mailbox'));
await userEvent.click(screen.getByTestId('button-new-mailbox'));
});
await waitFor(async () => { await waitFor(async () => {
expect(await screen.findByText('New email account')).toBeInTheDocument(); expect(await screen.findByText('New email account')).toBeInTheDocument();