ant-design/components/tooltip/__tests__/demo.test.tsx
MadCcc 8ae56f2371
feat: tooltip support arrow.pointAtCenter (#40989)
* feat: tooltip support arrow.pointAtCenter

* test: rm only

* fix: Popover

* fix: rm popover arrow logic

* test: update test

* chore: skip debug demo test
2023-03-05 17:51:19 +08:00

20 lines
402 B
TypeScript

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