mirror of
https://github.com/apache/superset.git
synced 2026-04-12 20:57:55 +00:00
perf(explore): render datasource details only when needed (#10924)
This commit is contained in:
@@ -60,14 +60,14 @@ describe('DatasourceControl', () => {
|
||||
});
|
||||
}
|
||||
|
||||
it('renders a Modal', () => {
|
||||
it('should not render Modal', () => {
|
||||
const wrapper = setup();
|
||||
expect(wrapper.find(DatasourceModal)).toExist();
|
||||
expect(wrapper.find(DatasourceModal)).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('renders a ChangeDatasourceModal', () => {
|
||||
it('should not render ChangeDatasourceModal', () => {
|
||||
const wrapper = setup();
|
||||
expect(wrapper.find(ChangeDatasourceModal)).toExist();
|
||||
expect(wrapper.find(ChangeDatasourceModal)).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('show or hide Edit Datasource option', () => {
|
||||
|
||||
Reference in New Issue
Block a user