@@ -275,7 +275,7 @@ describe('<ReferenceManyField />', () => {
275275 } ) ;
276276
277277 describe ( '"Select all" button' , ( ) => {
278- it ( 'should be displayed if an item is selected' , async ( ) => {
278+ it ( 'should be displayed if all the items of the page are selected' , async ( ) => {
279279 render ( < WithPagination /> ) ;
280280 await waitFor ( ( ) => {
281281 expect ( screen . queryAllByRole ( 'checkbox' ) ) . toHaveLength ( 6 ) ;
@@ -285,7 +285,7 @@ describe('<ReferenceManyField />', () => {
285285 await screen . findByRole ( 'button' , { name : 'Select all' } )
286286 ) . toBeDefined ( ) ;
287287 } ) ;
288- it ( 'should not be displayed if all item are manyally selected' , async ( ) => {
288+ it ( 'should not be displayed if all item are manually selected' , async ( ) => {
289289 render (
290290 < WithPagination
291291 dataProvider = { testDataProvider ( {
@@ -319,7 +319,7 @@ describe('<ReferenceManyField />', () => {
319319 screen . queryByRole ( 'button' , { name : 'Select all' } )
320320 ) . toBeNull ( ) ;
321321 } ) ;
322- it ( 'should not be displayed if all item are selected with the "Select all" button' , async ( ) => {
322+ it ( 'should not be displayed if all items are selected with the "Select all" button' , async ( ) => {
323323 render ( < WithPagination /> ) ;
324324 await waitFor ( ( ) => {
325325 expect ( screen . queryAllByRole ( 'checkbox' ) ) . toHaveLength ( 6 ) ;
@@ -332,7 +332,7 @@ describe('<ReferenceManyField />', () => {
332332 screen . queryByRole ( 'button' , { name : 'Select all' } )
333333 ) . toBeNull ( ) ;
334334 } ) ;
335- it ( 'should not be displayed if we reached de limit by a manyally selection' , async ( ) => {
335+ it ( 'should not be displayed if we reached the limit by a manual selection' , async ( ) => {
336336 render (
337337 < WithPaginationAndSelectAllLimit
338338 limit = { 2 }
@@ -374,7 +374,7 @@ describe('<ReferenceManyField />', () => {
374374 screen . queryByRole ( 'button' , { name : 'Select all' } )
375375 ) . toBeNull ( ) ;
376376 } ) ;
377- it ( 'should not be displayed if we reached de selectAllLimit by a click on the "Select all" button' , async ( ) => {
377+ it ( 'should not be displayed if we reached the selectAllLimit by a click on the "Select all" button' , async ( ) => {
378378 render ( < WithPaginationAndSelectAllLimit /> ) ;
379379 await waitFor ( ( ) => {
380380 expect ( screen . queryAllByRole ( 'checkbox' ) ) . toHaveLength ( 6 ) ;
@@ -400,7 +400,7 @@ describe('<ReferenceManyField />', () => {
400400 fireEvent . click ( screen . getByRole ( 'button' , { name : 'Select all' } ) ) ;
401401 await screen . findByText ( '7 items selected' ) ;
402402 } ) ;
403- it ( 'should select the maximum items possible until we reached the selectAllLimit' , async ( ) => {
403+ it ( 'should select the maximum items possible until we reach the selectAllLimit' , async ( ) => {
404404 render ( < WithPaginationAndSelectAllLimit /> ) ;
405405 await waitFor ( ( ) => {
406406 expect ( screen . queryAllByRole ( 'checkbox' ) ) . toHaveLength ( 6 ) ;
0 commit comments