💚(frontend) fix using side effects within waitFor callback
New lint error detected.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user