Skip to content

Commit 662663d

Browse files
committed
revert accidentally removed part of test
1 parent 130b3d7 commit 662663d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/@headlessui-react/src/components/listbox/listbox.test.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,6 +2283,18 @@ describe('Keyboard interactions', () => {
22832283
)
22842284

22852285
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+
22862298
assertActiveElement(getListbox())
22872299
assertListboxButtonLinkedWithListbox()
22882300

0 commit comments

Comments
 (0)