Skip to content

Commit b27fe7c

Browse files
committed
make test more logic
1 parent d8c0992 commit b27fe7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/ra-ui-materialui/src/button/SelectAllButton.spec.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ describe('<SelectAllButton />', () => {
1515
await screen.findByText('War and Peace');
1616
fireEvent.click(screen.getAllByRole('checkbox')[0]);
1717
await screen.findByText('10 items selected');
18-
expect(
19-
screen.queryByRole('button', { name: 'Select all' })
20-
).not.toBeNull();
18+
await screen.findByRole('button', { name: 'Select all' });
2119
fireEvent.click(screen.getAllByRole('checkbox')[1]);
2220
await screen.findByText('9 items selected');
2321
expect(screen.queryByRole('button', { name: 'Select all' })).toBeNull();

0 commit comments

Comments
 (0)