Skip to content

Commit

Permalink
Update packages/components/src/combobox-control/test/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com>
  • Loading branch information
chad1008 and ciampo authored Aug 3, 2022
1 parent c63c4b2 commit f414529
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/components/src/combobox-control/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ describe.each( [
// Pressing Enter/Return selects the currently focused option
await user.keyboard( '{Enter}' );

const itemSelectedAnnouncement = screen.getByText( 'Item selected.' );

expect( itemSelectedAnnouncement ).toBeInTheDocument();
expect(
screen.getByText( 'Item selected.', {
selector: '[aria-live]',
} )
).toBeInTheDocument();
} );

it( 'should process multiple entries in a single session', async () => {
Expand Down

0 comments on commit f414529

Please sign in to comment.