[Datasource Editor] A few small UI changes in modal to prevent accidental edits (#8471)

This commit is contained in:
Grace Guo
2019-10-29 15:26:11 -07:00
committed by GitHub
parent 1adf7426c2
commit 5fb0bcb854
4 changed files with 44 additions and 30 deletions

View File

@@ -91,6 +91,7 @@ describe('DatasourceEditor', () => {
});
it('renders isSqla fields', () => {
wrapper.setState({ activeTabKey: 4 });
expect(wrapper.state('isSqla')).toBe(true);
expect(wrapper.find(Field).find({ fieldKey: 'fetch_values_predicate' }).exists()).toBe(true);
});