Skip to content

Commit

Permalink
Fix CustomSelectControl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Jul 26, 2024
1 parent 7e7cb32 commit 49a959f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/components/src/custom-select-control/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,13 @@ describe.each( [
).toBeVisible();

await press.Escape();
expect(
screen.queryByRole( 'listbox', {
name: props.label,
} )
).not.toBeInTheDocument();
await waitFor( () =>
expect(
screen.queryByRole( 'listbox', {
name: props.label,
} )
).not.toBeInTheDocument()
);

expect( currentSelectedItem ).toHaveTextContent(
props.options[ 0 ].name
Expand Down

0 comments on commit 49a959f

Please sign in to comment.