refactor: Bootstrap to AntD - Form - iteration 1 (#14106)

This commit is contained in:
Michael S. Molina
2021-04-26 19:03:53 -03:00
committed by GitHub
parent 8dd0620fd3
commit 4fbb572568
4 changed files with 78 additions and 92 deletions

View File

@@ -22,6 +22,7 @@ import { shallow } from 'enzyme';
import { getChartMetadataRegistry, ChartMetadata } from '@superset-ui/core';
import VizTypeControl from 'src/explore/components/controls/VizTypeControl';
import Modal from 'src/components/Modal';
import { Input } from 'src/common/components';
const defaultProps = {
name: 'viz_type',
@@ -65,7 +66,7 @@ describe('VizTypeControl', () => {
});
it('filters images based on text input', () => {
expect(wrapper.find('img')).toHaveLength(2);
wrapper.find('FormControl').simulate('change', {
wrapper.find(Input).simulate('change', {
target: {
value: 'vis2',
},