mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
[Feature] Dashboard filter indicators (#7908)
* dashboard filter indicators * add/fix unit tests
This commit is contained in:
@@ -67,7 +67,7 @@ describe('DashboardBuilder', () => {
|
||||
setColorSchemeAndUnsavedChanges() {},
|
||||
colorScheme: undefined,
|
||||
handleComponentDrop() {},
|
||||
toggleBuilderPane() {},
|
||||
setDirectPathToChild: sinon.spy(),
|
||||
};
|
||||
|
||||
function setup(overrideProps, useProvider = false, store = mockStore) {
|
||||
@@ -171,7 +171,7 @@ describe('DashboardBuilder', () => {
|
||||
expect(wrapper.find(BuilderComponentPane)).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('should change tabs if a top-level Tab is clicked', () => {
|
||||
it('should change redux state if a top-level Tab is clicked', () => {
|
||||
const wrapper = setup(
|
||||
{ dashboardLayout: layoutWithTabs },
|
||||
true,
|
||||
@@ -185,6 +185,6 @@ describe('DashboardBuilder', () => {
|
||||
.at(1)
|
||||
.simulate('click');
|
||||
|
||||
expect(wrapper.find(TabContainer).prop('activeKey')).toBe(1);
|
||||
expect(props.setDirectPathToChild.callCount).toBe(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user