mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(explore): metrics and filters controls redesign (#12095)
* Redesign metrics control * Redesign filters control * Bugfixes * Fix unit tests * Fix tests * Code review fixes
This commit is contained in:
committed by
GitHub
parent
d1dfe82d6c
commit
b61e243f39
@@ -19,7 +19,6 @@
|
||||
/* eslint-disable no-unused-expressions */
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { MetricOption } from '@superset-ui/chart-controls';
|
||||
|
||||
import MetricDefinitionValue from 'src/explore/components/MetricDefinitionValue';
|
||||
import AdhocMetricOption from 'src/explore/components/AdhocMetricOption';
|
||||
@@ -36,7 +35,7 @@ describe('MetricDefinitionValue', () => {
|
||||
const wrapper = shallow(
|
||||
<MetricDefinitionValue option={{ metric_name: 'a_saved_metric' }} />,
|
||||
);
|
||||
expect(wrapper.find(MetricOption)).toExist();
|
||||
expect(wrapper.find('OptionControlLabel')).toExist();
|
||||
});
|
||||
|
||||
it('renders an AdhocMetricOption given an adhoc metric', () => {
|
||||
|
||||
Reference in New Issue
Block a user