mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[dashboard] adding an option to duplicate slices when "Saving AS" (#3391)
* [dashboard] adding an option to duplicate slices when "Saving AS" * Fix tests
This commit is contained in:
committed by
GitHub
parent
3b4cd812ae
commit
e53f3032bb
@@ -7,6 +7,7 @@ import { shallow } from 'enzyme';
|
||||
|
||||
import CheckboxControl from '../../../../javascripts/explore/components/controls/CheckboxControl';
|
||||
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
|
||||
import Checkbox from '../../../../javascripts/components/Checkbox';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'show_legend',
|
||||
@@ -27,6 +28,6 @@ describe('CheckboxControl', () => {
|
||||
expect(controlHeader).to.have.lengthOf(1);
|
||||
|
||||
const headerWrapper = controlHeader.shallow();
|
||||
expect(headerWrapper.find('i.fa-check')).to.have.length(1);
|
||||
expect(headerWrapper.find(Checkbox)).to.have.length(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user