mirror of
https://github.com/apache/superset.git
synced 2026-04-16 22:55:52 +00:00
Adding dropdown to DatasourceControl and ability to change datasource (#6816)
* Adding dropdown to DatasourceControl and ability to change datasource * Style fixes * Adding unit tests for datasource/get endpoint * Fixing issue with dropdown overflow and style changes * Fixing issues rebasing metadata button and fixing sort for datasource with no name
This commit is contained in:
committed by
Christine Chambers
parent
c04c0cd8f0
commit
ba9523c7c4
@@ -21,6 +21,7 @@ import sinon from 'sinon';
|
||||
import configureStore from 'redux-mock-store';
|
||||
import { shallow } from 'enzyme';
|
||||
import DatasourceModal from '../../../../src/datasource/DatasourceModal';
|
||||
import ChangeDatasourceModal from '../../../../src/datasource/ChangeDatasourceModal';
|
||||
import DatasourceControl from '../../../../src/explore/components/controls/DatasourceControl';
|
||||
|
||||
const defaultProps = {
|
||||
@@ -53,4 +54,9 @@ describe('DatasourceControl', () => {
|
||||
const wrapper = setup();
|
||||
expect(wrapper.find(DatasourceModal)).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('renders a ChangeDatasourceModal', () => {
|
||||
const wrapper = setup();
|
||||
expect(wrapper.find(ChangeDatasourceModal)).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user