Skip to content

Commit 0aadb62

Browse files
committed
remove manual timeouts
1 parent a65bd89 commit 0aadb62

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ describe('<List />', () => {
427427
expect(
428428
screen.queryByRole('button', { name: 'Select all' })
429429
).toBeNull();
430-
}, 10000);
430+
});
431431
it('should not be displayed if the user reaches the limit by a manual selection', async () => {
432432
render(
433433
<SelectAllLimit
@@ -481,15 +481,15 @@ describe('<List />', () => {
481481
expect(
482482
screen.queryByRole('button', { name: 'Select all' })
483483
).toBeNull();
484-
}, 10000);
484+
});
485485
it('should select all items', async () => {
486486
render(<Default />);
487487
await screen.findByText('War and Peace');
488488
fireEvent.click(screen.getAllByRole('checkbox')[0]);
489489
await screen.findByText('10 items selected');
490490
fireEvent.click(screen.getByRole('button', { name: 'Select all' }));
491491
await screen.findByText('13 items selected');
492-
}, 10000);
492+
});
493493
it('should select the maximum items possible up to the selectAllLimit', async () => {
494494
render(<SelectAllLimit />);
495495
await screen.findByText('War and Peace');
@@ -500,7 +500,7 @@ describe('<List />', () => {
500500
await screen.findByText(
501501
'There are too many elements to select them all. Only the first 11 elements were selected.'
502502
);
503-
}, 10000);
503+
});
504504
});
505505
it('should render the default offline component node when offline', async () => {
506506
const { rerender } = render(<Offline isOnline={false} />);

0 commit comments

Comments
 (0)