refactor: Replace react-bootstrap MenuItems with Antd Menu (#11554)

* Refactor SliceHeaderControls

* Refactor DisplayQueryButton

* Fix duplicate keys

* Refactor SliceAdder

* Move css from styles to Emotion

* Fix e2e test
This commit is contained in:
Kamil Gabryjelski
2020-11-05 22:30:03 +01:00
committed by GitHub
parent 091432ea8e
commit 1490f3074d
11 changed files with 289 additions and 270 deletions

View File

@@ -18,10 +18,10 @@
*/
import React from 'react';
import { mount } from 'enzyme';
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
import { Menu } from 'src/common/components';
import ModalTrigger from 'src/components/ModalTrigger';
import { DisplayQueryButton } from 'src/explore/components/DisplayQueryButton';
import { MenuItem } from 'react-bootstrap';
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
describe('DisplayQueryButton', () => {
const defaultProps = {
@@ -51,6 +51,6 @@ describe('DisplayQueryButton', () => {
},
});
expect(wrapper.find(ModalTrigger)).toHaveLength(3);
expect(wrapper.find(MenuItem)).toHaveLength(5);
expect(wrapper.find(Menu.Item)).toHaveLength(5);
});
});