mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
* Revert "fix: RBAC hide right menu (#16902)"
This reverts commit 87baac7650.
* fix failing test
This commit is contained in:
committed by
GitHub
parent
85e3cec521
commit
5866d5ebb0
@@ -17,14 +17,13 @@
|
||||
* under the License.
|
||||
*/
|
||||
import React from 'react';
|
||||
import { render } from 'spec/helpers/testing-library';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import HoverMenu from 'src/dashboard/components/menu/HoverMenu';
|
||||
|
||||
describe('HoverMenu', () => {
|
||||
it('should render a hover menu', () => {
|
||||
const rendered = render(<HoverMenu />);
|
||||
const hoverMenu = rendered.container.querySelector('.hover-menu');
|
||||
expect(hoverMenu).toBeVisible();
|
||||
it('should render a div.hover-menu', () => {
|
||||
const wrapper = shallow(<HoverMenu />);
|
||||
expect(wrapper.find('.hover-menu')).toExist();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user