Skip to content

Commit d37c528

Browse files
committed
test: update
1 parent e966d5b commit d37c528

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/vue/src/components/dialog/tests/dialog.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Dialog', () => {
1010

1111
await waitFor(async () => expect(await screen.findByText('Dialog Title')).toBeVisible())
1212

13-
await user.click(screen.getByText('Close'))
13+
await waitFor(() => user.click(screen.getByText('Close')))
1414
await waitFor(async () => expect(await screen.findByText('Dialog Title')).not.toBeVisible())
1515
})
1616

@@ -21,7 +21,7 @@ describe('Dialog', () => {
2121
await user.click(screen.getByText('Open Dialog'))
2222
await waitFor(async () => expect(await screen.findByText('Dialog Title')).toBeVisible())
2323

24-
await user.click(screen.getByText('Close'))
24+
await waitFor(() => user.click(screen.getByText('Close')))
2525
await waitFor(() => expect(onExitComplete).toHaveBeenCalled())
2626
})
2727
})

0 commit comments

Comments
 (0)