[dashboard] new, bulk actions for delete & export (#8979)

* bulk actions for dashboards list view

* add confirm component

* finish bulk actions work

* remove loading component

* fix sortby double render bug, lint, fix specs

* adds spec for bulk actions

* fix spec

* spec ConfirmStatusChange

* lint

* tslint

* address review feedback

* tslint fixes

* guard against empty filterTypes

* persist dom events

* tslint
This commit is contained in:
ʈᵃᵢ
2020-01-27 10:23:41 -08:00
committed by Maxime Beauchemin
parent aecc82e174
commit a0cda321b7
15 changed files with 824 additions and 541 deletions

View File

@@ -23,8 +23,7 @@ import configureStore from 'redux-mock-store';
import fetchMock from 'fetch-mock';
import ListView from 'src/components/ListView/ListView';
import DashboardTable from '../../../src/welcome/DashboardTable';
import Loading from '../../../src/components/Loading';
import DashboardTable from 'src/welcome/DashboardTable';
// store needed for withToasts(DashboardTable)
const mockStore = configureStore([thunk]);
@@ -43,11 +42,6 @@ function setup() {
describe('DashboardTable', () => {
beforeEach(fetchMock.resetHistory);
it('renders a Loading initially', () => {
const wrapper = setup();
expect(wrapper.find(Loading)).toHaveLength(1);
});
it('fetches dashboards and renders a ListView', done => {
const wrapper = setup();