Skip to content

Commit 0728c2e

Browse files
committed
chore(VAutocomplete): fix flaky test
1 parent b89f568 commit 0728c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/components/VAutocomplete/__tests__/VAutocomplete.spec.browser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ describe('VAutocomplete', () => {
649649
})
650650

651651
await userEvent.click(element)
652-
await expect(screen.findByRole('listbox')).resolves.toBeDisplayed()
652+
await expect.poll(() => screen.findByRole('listbox')).toBeDisplayed()
653653

654654
await userEvent.click(screen.getAllByRole('option')[0])
655655
await rerender({ items: ['Foo', 'Bar', 'test', 'test 2'] })

0 commit comments

Comments
 (0)