ant-design/components/popover/__tests__/demo.test.tsx

19 lines
429 B
TypeScript
Raw Normal View History

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('popover', {
testRootProps: false,
skip: ['shift.tsx', 'arrow-point-at-center.tsx'],
});
rootPropsTest(
'popover',
(Popover, props) => (
<Popover {...props} title="Bamboo" content="Little">
<span />
</Popover>
),
{ findRootElements: () => document.querySelector('.ant-popover')! },
);