diff --git a/superset/assets/javascripts/dashboard/components/SliceCell.jsx b/superset/assets/javascripts/dashboard/components/SliceCell.jsx index a57fbded6..c6ddf3156 100644 --- a/superset/assets/javascripts/dashboard/components/SliceCell.jsx +++ b/superset/assets/javascripts/dashboard/components/SliceCell.jsx @@ -2,6 +2,8 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { getExploreUrl } from '../../explore/exploreUtils'; + const propTypes = { slice: PropTypes.object.isRequired, removeSlice: PropTypes.func.isRequired, @@ -40,7 +42,10 @@ function SliceCell({ expandedSlices, removeSlice, slice }) { > - + + + + { React.isValidElement(), ).to.equal(true); }); - it('renders five links', () => { + it('renders six links', () => { const wrapper = mount(); - expect(wrapper.find('a')).to.have.length(5); + expect(wrapper.find('a')).to.have.length(6); }); });