Skip to content

Commit 13a37f4

Browse files
committed
chore: fix unstable test for VSelect
1 parent 346ec1b commit 13a37f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,12 @@ describe('VSelect', () => {
740740
expect(inputField.getAttribute('aria-controls')).toMatch(/^menu-v-\d+/)
741741

742742
await userEvent.click(inputField)
743+
await commands.waitStable('.v-list')
743744

744745
expect(inputField).toHaveAttribute('aria-expanded', 'true')
745746
expect(inputField).toHaveAttribute('aria-label', 'Close')
746747

748+
await commands.waitStable('.v-list')
747749
await userEvent.click(screen.getAllByRole('option')[0])
748750

749751
expect(inputField).toHaveAttribute('aria-expanded', 'false')

0 commit comments

Comments
 (0)