@@ -765,9 +765,7 @@ for (const useModernActionList of [false, true]) {
765
765
766
766
jest . runAllTimers ( )
767
767
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. ' )
771
769
} )
772
770
jest . useRealTimers ( )
773
771
} )
@@ -849,8 +847,7 @@ for (const useModernActionList of [false, true]) {
849
847
expect ( screen . getAllByRole ( 'option' ) ) . toHaveLength ( 3 )
850
848
851
849
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 ( )
854
851
} )
855
852
856
853
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]) {
860
857
861
858
await waitFor ( async ( ) => {
862
859
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 ( )
865
861
} )
866
862
} )
867
863
it ( 'should display the custom empty state message when there is no matching item after filtering' , async ( ) => {
0 commit comments