From da438f88d21820c5c3f6dcc5342a0dac7d38225c Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 5 Jun 2024 22:47:54 -0400 Subject: [PATCH] test: fix account settings test --- src/routes/Settings.test.tsx | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/routes/Settings.test.tsx b/src/routes/Settings.test.tsx index 2f42d5ff8..a254d8bb6 100644 --- a/src/routes/Settings.test.tsx +++ b/src/routes/Settings.test.tsx @@ -503,19 +503,22 @@ describe('routes/Settings.tsx', () => { ); }); - it('should open account management', () => { - render( - - - - - , - ); + it('should open account management', async () => { + await act(async () => { + render( + + + + + , + ); + }); + fireEvent.click(screen.getByTitle('Accounts')); expect(mockNavigate).toHaveBeenCalledWith('/accounts'); });