mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
catch collapse onchange (#13927)
This commit is contained in:
committed by
GitHub
parent
541d23bbd1
commit
abd4051f7a
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user