mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
[explore] Include "Autocomplete Query Predicate" field to Table Editor (#6171)
* Improvements around filters * Adding simple test
This commit is contained in:
committed by
GitHub
parent
d6908eef49
commit
5403f31007
@@ -6,6 +6,7 @@ import fetchMock from 'fetch-mock';
|
||||
import thunk from 'redux-thunk';
|
||||
|
||||
import DatasourceEditor from '../../../src/datasource/DatasourceEditor';
|
||||
import Field from '../../../src/CRUD/Field';
|
||||
import mockDatasource from '../../fixtures/mockDatasource';
|
||||
|
||||
const props = {
|
||||
@@ -70,4 +71,9 @@ describe('DatasourceEditor', () => {
|
||||
inst.mergeColumns([extraColumn]);
|
||||
expect(inst.state.databaseColumns).toHaveLength(numCols + 1);
|
||||
});
|
||||
|
||||
it('renders isSqla fields', () => {
|
||||
expect(wrapper.state('isSqla')).toBe(true);
|
||||
expect(wrapper.find(Field).find({ fieldKey: 'fetch_values_predicate' }).exists()).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user