Skip to content

Commit e1a22ec

Browse files
committed
increase timeout to fix use-auth-modal unit tests
1 parent f80c954 commit e1a22ec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/template-retail-react-app/app/hooks/use-auth-modal.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,12 @@ describe('Passwordless enabled', () => {
297297
).not.toBeInTheDocument()
298298
})
299299

300-
await waitFor(() => {
301-
expect(screen.getByText(/You're now signed in./i)).toBeInTheDocument()
302-
})
300+
await waitFor(
301+
() => {
302+
expect(screen.getByText(/You're now signed in./i)).toBeInTheDocument()
303+
},
304+
{timeout: 5000}
305+
)
303306
})
304307

305308
test('allows passwordless login via Enter key', async () => {

0 commit comments

Comments
 (0)