diff --git a/packages/components/src/combobox-control/test/index.js b/packages/components/src/combobox-control/test/index.js index 4999e355a36cef..2bcd980982eb4f 100644 --- a/packages/components/src/combobox-control/test/index.js +++ b/packages/components/src/combobox-control/test/index.js @@ -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 () => {