We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 130b3d7 commit 662663dCopy full SHA for 662663d
packages/@headlessui-react/src/components/listbox/listbox.test.tsx
@@ -2283,6 +2283,18 @@ describe('Keyboard interactions', () => {
2283
)
2284
2285
assertListboxButton({ state: ListboxState.InvisibleUnmounted })
2286
+ assertListbox({ state: ListboxState.InvisibleUnmounted })
2287
+
2288
+ // Focus the button
2289
+ await focus(getListboxButton())
2290
2291
+ // Open listbox
2292
+ await press(Keys.ArrowUp)
2293
2294
+ // Verify it is visible
2295
+ assertListboxButton({ state: ListboxState.Visible })
2296
+ assertListbox({ state: ListboxState.Visible })
2297
2298
assertActiveElement(getListbox())
2299
assertListboxButtonLinkedWithListbox()
2300
0 commit comments