mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
refactor: Bootstrap to AntD - Form - iteration 1 (#14106)
This commit is contained in:
committed by
GitHub
parent
8dd0620fd3
commit
4fbb572568
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user