@@ -765,9 +765,7 @@ for (const useModernActionList of [false, true]) {
765765
766766 jest . runAllTimers ( )
767767 await waitFor ( async ( ) => {
768- expect ( getLiveRegion ( ) . getMessage ( 'polite' ) ) . toBe (
769- "You haven't created any items yet. Please add or create new items to populate the list." ,
770- )
768+ expect ( getLiveRegion ( ) . getMessage ( 'polite' ) ) . toBe ( 'No items available. ' )
771769 } )
772770 jest . useRealTimers ( )
773771 } )
@@ -849,8 +847,7 @@ for (const useModernActionList of [false, true]) {
849847 expect ( screen . getAllByRole ( 'option' ) ) . toHaveLength ( 3 )
850848
851849 await user . type ( document . activeElement ! , 'something' )
852- expect ( screen . getByText ( "You haven't created any items yet" ) ) . toBeVisible ( )
853- expect ( screen . getByText ( 'Please add or create new items to populate the list.' ) ) . toBeVisible ( )
850+ expect ( screen . getByText ( 'No items available' ) ) . toBeVisible ( )
854851 } )
855852
856853 it ( 'should display the default empty state message when there is no item after the initial load (No custom message is provided)' , async ( ) => {
@@ -860,8 +857,7 @@ for (const useModernActionList of [false, true]) {
860857
861858 await waitFor ( async ( ) => {
862859 await user . click ( screen . getByText ( 'Select items' ) )
863- expect ( screen . getByText ( "You haven't created any items yet" ) ) . toBeVisible ( )
864- expect ( screen . getByText ( 'Please add or create new items to populate the list.' ) ) . toBeVisible ( )
860+ expect ( screen . getByText ( 'No items available' ) ) . toBeVisible ( )
865861 } )
866862 } )
867863 it ( 'should display the custom empty state message when there is no matching item after filtering' , async ( ) => {
0 commit comments