Skip to content

Commit 2f3ed8a

Browse files
committed
rename tests
1 parent b27fe7c commit 2f3ed8a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

packages/ra-ui-materialui/src/field/ReferenceManyField.spec.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

packages/ra-ui-materialui/src/list/List.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe('<List />', () => {
357357
await screen.findByRole('button', { name: 'Select all' })
358358
).toBeDefined();
359359
});
360-
it('should not be displayed if all item are manually selected', async () => {
360+
it('should not be displayed if all items are manually selected', async () => {
361361
render(
362362
<Default
363363
dataProvider={testDataProvider({
@@ -391,7 +391,7 @@ describe('<List />', () => {
391391
screen.queryByRole('button', { name: 'Select all' })
392392
).toBeNull();
393393
});
394-
it('should not be displayed if all item are selected with the "Select all" button', async () => {
394+
it('should not be displayed if all items are selected with the "Select all" button', async () => {
395395
render(<Default />);
396396
await waitFor(() => {
397397
expect(screen.queryAllByRole('checkbox')).toHaveLength(11);
@@ -404,7 +404,7 @@ describe('<List />', () => {
404404
screen.queryByRole('button', { name: 'Select all' })
405405
).toBeNull();
406406
});
407-
it('should not be displayed if we reached the limit by a manual selection', async () => {
407+
it('should not be displayed if the user reaches the limit by a manual selection', async () => {
408408
render(
409409
<SelectAllLimit
410410
limit={2}
@@ -446,7 +446,7 @@ describe('<List />', () => {
446446
screen.queryByRole('button', { name: 'Select all' })
447447
).toBeNull();
448448
});
449-
it('should not be displayed if we reached the selectAllLimit by a click on the "Select all" button', async () => {
449+
it('should not be displayed if the user reaches the selectAllLimit by a click on the "Select all" button', async () => {
450450
render(<SelectAllLimit />);
451451
await waitFor(() => {
452452
expect(screen.queryAllByRole('checkbox')).toHaveLength(11);
@@ -472,7 +472,7 @@ describe('<List />', () => {
472472
fireEvent.click(screen.getByRole('button', { name: 'Select all' }));
473473
await screen.findByText('13 items selected');
474474
});
475-
it('should select the maximum items possible until we reached the selectAllLimit', async () => {
475+
it('should select the maximum items possible up to the selectAllLimit', async () => {
476476
render(<SelectAllLimit />);
477477
await waitFor(() => {
478478
expect(screen.queryAllByRole('checkbox')).toHaveLength(11);

0 commit comments

Comments
 (0)