diff --git a/packages/ra-core/src/controller/useListController.spec.tsx b/packages/ra-core/src/controller/useListController.spec.tsx index d829e1338c2..70822c1460a 100644 --- a/packages/ra-core/src/controller/useListController.spec.tsx +++ b/packages/ra-core/src/controller/useListController.spec.tsx @@ -190,6 +190,60 @@ describe('useListController', () => { cleanup(); }); }); + describe('showFilter', () => { + it('Does not remove previously shown filter when adding a new one', () => { + let currentDisplayedFilters; + + let fakeComponent = ({ showFilter, displayedFilters }) => { + currentDisplayedFilters = displayedFilters; + return ( + <> +