ant-design/components/popconfirm/__tests__/demo.test.tsx
lijianan a55195f25b
demo: update Popover & Tooltip & Popconfirm demo (#49815)
* demo: update demo

* fix: fix

* fix: fix

* fix: fix
2024-07-11 10:03:12 +08:00

21 lines
390 B
TypeScript

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('popconfirm', {
testRootProps: false,
skip: ['shift.tsx'],
});
rootPropsTest(
'popconfirm',
(Popconfirm, props) => (
<Popconfirm {...props}>
<span />
</Popconfirm>
),
{
findRootElements: () => document.querySelector('.ant-popover')!,
},
);