Skip to content

Commit a8d44e5

Browse files
committed
Reapply "Components: Await focus for CustomSelectControl opening"
This reverts commit 0a4bd35.
1 parent 0a4bd35 commit a8d44e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/components/src/custom-select-control/test

packages/components/src/custom-select-control/test/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ describe.each( [
483483
const customSelect = screen.getByRole( 'listbox', {
484484
name: props.label,
485485
} );
486-
expect( customSelect ).toHaveFocus();
486+
await waitFor( () => expect( customSelect ).toHaveFocus() );
487487
await press.Enter();
488488

489489
expect( onKeyDown ).toHaveBeenCalledTimes( 0 );

0 commit comments

Comments
 (0)