[Feature] Dashboard filter indicators (#7908)

* dashboard filter indicators

* add/fix unit tests
This commit is contained in:
Grace Guo
2019-08-21 17:34:08 -07:00
committed by GitHub
parent 0fd7364503
commit 40776bd547
74 changed files with 2455 additions and 454 deletions

View File

@@ -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);
});
});