fix: Remove view in sql lab from druid datasources (#13469)

This commit is contained in:
Erik Ritter
2021-03-04 14:54:29 -08:00
committed by GitHub
parent c3c73763d0
commit d2e03ab9b4
2 changed files with 29 additions and 2 deletions

View File

@@ -93,6 +93,28 @@ describe('DatasourceControl', () => {
</div>,
);
expect(menuWrapper.find(Menu.Item)).toHaveLength(2);
wrapper = setup({
datasource: {
name: 'birth_names',
type: 'druid',
uid: '1__druid',
id: 1,
columns: [],
metrics: [],
database: {
backend: 'druid',
name: 'main',
},
},
});
expect(wrapper.find('[data-test="datasource-menu"]')).toExist();
menuWrapper = shallow(
<div>
{wrapper.find('[data-test="datasource-menu"]').prop('overlay')}
</div>,
);
expect(menuWrapper.find(Menu.Item)).toHaveLength(2);
});
it('should render health check message', () => {