Skip to content

Commit e4989e0

Browse files
committed
Fix tests
1 parent dce0967 commit e4989e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ra-ui-materialui/src/list/datatable/ColumnsButton.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('ColumnsButton', () => {
2929
screen
3030
.getByRole('menu')
3131
.querySelectorAll('li:not(.columns-selector-actions)')
32-
).toHaveLength(8); // 7 columns + the filter input li
32+
).toHaveLength(7);
3333
// Typing a filter
3434
fireEvent.change(
3535
screen.getByPlaceholderText('ra.action.search_columns'),
@@ -43,7 +43,7 @@ describe('ColumnsButton', () => {
4343
screen
4444
.getByRole('menu')
4545
.querySelectorAll('li:not(.columns-selector-actions)')
46-
).toHaveLength(2); // only the column with 'DiA' in its label should remain + the filter input li
46+
).toHaveLength(1);
4747
});
4848
screen.getByLabelText('Téstïng diàcritics');
4949
// Clear the filter
@@ -53,7 +53,7 @@ describe('ColumnsButton', () => {
5353
screen
5454
.getByRole('menu')
5555
.querySelectorAll('li:not(.columns-selector-actions)')
56-
).toHaveLength(8);
56+
).toHaveLength(7);
5757
});
5858
});
5959
});

0 commit comments

Comments
 (0)