catch collapse onchange (#13927)

(cherry picked from commit abd4051f7a)
This commit is contained in:
Elizabeth Thompson
2021-04-03 00:00:34 -07:00
committed by henryyeh
parent 3eefca3a82
commit ea3d6905af
4 changed files with 50 additions and 47 deletions

View File

@@ -118,22 +118,6 @@ describe('TableElement', () => {
'active',
);
});
it('calls the collapseTable action', () => {
const wrapper = mount(
<Provider store={store}>
<TableElement {...mockedProps} />
</Provider>,
{
wrappingComponent: ThemeProvider,
wrappingComponentProps: {
theme: supersetTheme,
},
},
);
expect(mockedActions.collapseTable.called).toBe(false);
wrapper.find('[data-test="collapse"]').hostNodes().simulate('click');
expect(mockedActions.collapseTable.called).toBe(true);
});
it('removes the table', () => {
const wrapper = mount(
<Provider store={store}>