mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
feat: filters for database list view (#10772)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user