There was an error while loading. Please reload this page.
1 parent 0a4bd35 commit a8d44e5Copy full SHA for a8d44e5
1 file changed
packages/components/src/custom-select-control/test/index.tsx
@@ -483,7 +483,7 @@ describe.each( [
483
const customSelect = screen.getByRole( 'listbox', {
484
name: props.label,
485
} );
486
- expect( customSelect ).toHaveFocus();
+ await waitFor( () => expect( customSelect ).toHaveFocus() );
487
await press.Enter();
488
489
expect( onKeyDown ).toHaveBeenCalledTimes( 0 );
0 commit comments