feat: filters for database list view (#10772)

This commit is contained in:
ʈᵃᵢ
2020-09-04 16:23:38 -07:00
committed by GitHub
parent c1ff1c5d70
commit 92f2353f80
8 changed files with 128 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ import { QueryParamProvider } from 'use-query-params';
import { supersetTheme, ThemeProvider } from '@superset-ui/style';
import Button from 'src/components/Button';
import { Empty } from 'src/common/components';
import CardCollection from 'src/components/ListView/CardCollection';
import { CardSortSelect } from 'src/components/ListView/CardSortSelect';
import IndeterminateCheckbox from 'src/components/IndeterminateCheckbox';
@@ -346,6 +347,16 @@ describe('ListView', () => {
);
});
it('renders and empty state when there is no data', () => {
const props = {
...mockedProps,
data: [],
};
const wrapper2 = factory(props);
expect(wrapper2.find(Empty)).toExist();
});
it('renders UI filters', () => {
expect(wrapper.find(ListViewFilters)).toExist();
});