chore: Select component refactoring - ColorSchemeControl - Iteration 5 (#15555)

* Enhance Select

* Transition Select to Antd

* Update test

* Fix Cypress

* Change name to aria-label

* Update Cypress search val

* Test Cypress selection
This commit is contained in:
Geido
2021-07-19 08:07:40 +02:00
committed by GitHub
parent 5cc4f3c4b9
commit 45c3ae0bf9
3 changed files with 23 additions and 31 deletions

View File

@@ -18,7 +18,7 @@
*/
/* eslint-disable no-unused-expressions */
import React from 'react';
import { Select } from 'src/components/Select';
import { Select } from 'src/components';
import { getCategoricalSchemeRegistry } from '@superset-ui/core';
import { styledMount as mount } from 'spec/helpers/theming';
import ColorSchemeControl from 'src/explore/components/controls/ColorSchemeControl';
@@ -37,7 +37,7 @@ describe('ColorSchemeControl', () => {
wrapper = mount(<ColorSchemeControl {...defaultProps} />);
});
it('renders a Creatable', () => {
it('renders a Select', () => {
expect(wrapper.find(Select)).toExist();
});
});