mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
feat: Implement drag & drop for metrics and filters labels (#12184)
This commit is contained in:
committed by
GitHub
parent
74f3faf1cd
commit
f3ab1f41ee
@@ -45,6 +45,9 @@ function setup(overrides) {
|
||||
savedMetrics: [],
|
||||
onMetricEdit,
|
||||
columns,
|
||||
onMoveLabel: () => {},
|
||||
onDropLabel: () => {},
|
||||
index: 0,
|
||||
...overrides,
|
||||
};
|
||||
const wrapper = shallow(<AdhocMetricOption {...props} />)
|
||||
@@ -57,7 +60,7 @@ describe('AdhocMetricOption', () => {
|
||||
it('renders an overlay trigger wrapper for the label', () => {
|
||||
const { wrapper } = setup();
|
||||
expect(wrapper.find(Popover)).toExist();
|
||||
expect(wrapper.find('OptionControlLabel')).toExist();
|
||||
expect(wrapper.find('DraggableOptionControlLabel')).toExist();
|
||||
});
|
||||
|
||||
it('overwrites the adhocMetric in state with onLabelChange', () => {
|
||||
|
||||
Reference in New Issue
Block a user