Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/components/src/menu/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ describe( 'Menu', () => {
// Menu closed
expect( screen.queryByRole( 'menuitem' ) ).not.toBeInTheDocument();

await press.Space();
// Keyboard-triggered clicks have `detail: 0`, which Ariakit uses to
// choose the initial item focus path instead of the pointer path.
await press.Space( toggleButton, { detail: 0 } );

// Menu open, focus is on the first focusable item
await waitForFocusedMenuItem( 'First item' );
Expand Down
Loading