ant-design/components/popover/__tests__/demo.test.tsx
e188445b22
fix(popover): arrow. pointAtCenter misalignment error (#50260)
* fix(popover): 'arrow. pointAtCenter' misalignment error

* chore: add debug demo

* chore: update snaphots

* chore: update

* chore: Reverse components/popover/demo/basic.tsx

* chore: update snaphots

* chore: skip debug demo test

* chore: update demo

* chore: update snapshot

* chore: skip debug demo test

ref: https://github.com/ant-design/ant-design/pull/50260#discussion_r1708926635
2024-08-12 11:56:29 +08:00

19 lines
429 B
TypeScript

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')! },
);