mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
refactor(userInfo): userinfo panel to styled component (#14090)
* migrate component * fix lint * remove collapse * fix test
This commit is contained in:
committed by
GitHub
parent
19d2e10aff
commit
fbf0149d8b
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import Gravatar from 'react-gravatar';
|
||||
import { Panel } from 'react-bootstrap';
|
||||
import { mount } from 'enzyme';
|
||||
import UserInfo from 'src/profile/components/UserInfo';
|
||||
|
||||
@@ -37,7 +36,7 @@ describe('UserInfo', () => {
|
||||
});
|
||||
it('renders a Panel', () => {
|
||||
const wrapper = mount(<UserInfo {...mockedProps} />);
|
||||
expect(wrapper.find(Panel)).toExist();
|
||||
expect(wrapper.find('.panel')).toExist();
|
||||
});
|
||||
it('renders 5 icons', () => {
|
||||
const wrapper = mount(<UserInfo {...mockedProps} />);
|
||||
|
||||
Reference in New Issue
Block a user