Skip to content

Commit

Permalink
test: add await to userEvent in test (unovue#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 authored May 26, 2024
1 parent 1f7e65a commit 19b1b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/radix-vue/src/FocusScope/FocusScope.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ describe('focusScope', () => {
it('should properly blur the last element in the scope before cycling back', async () => {
// Tab back and then tab forward to cycle through the scope
tabbableFirst.focus()
userEvent.tab({ shift: true })
userEvent.tab()
await userEvent.tab({ shift: true })
await userEvent.tab()
waitFor(() => expect(handleLastFocusableElementBlur).toHaveBeenCalledTimes(1))
})
})
Expand Down

0 comments on commit 19b1b8d

Please sign in to comment.