From 513dbe6f83c00f01cbf38ec1eef130a0b0783997 Mon Sep 17 00:00:00 2001 From: Quentin BEY Date: Tue, 4 Nov 2025 15:27:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(frontend)=20fix=20using=20side=20e?= =?UTF-8?q?ffects=20within=20`waitFor`=20callback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New lint error detected. --- .../components/__tests__/MailDomainsContent.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/__tests__/MailDomainsContent.test.tsx b/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/__tests__/MailDomainsContent.test.tsx index 2c7ff54..bfe4f55 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/__tests__/MailDomainsContent.test.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/__tests__/MailDomainsContent.test.tsx @@ -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();