mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
✅ fix Tooltip test case
This commit is contained in:
parent
df1555c6c7
commit
7d3cb95f17
@ -61,9 +61,3 @@ exports[`Tooltip should hide when mouse leave antd disabled component Switch 1`]
|
||||
</button>
|
||||
</span>
|
||||
`;
|
||||
|
||||
exports[`Tooltip should works for mismatch placement 1`] = `
|
||||
<span>
|
||||
Hello world!
|
||||
</span>
|
||||
`;
|
||||
|
@ -303,13 +303,16 @@ describe('Tooltip', () => {
|
||||
<Tooltip
|
||||
title="xxxxx"
|
||||
align={{
|
||||
points: ['aa', 'bb'],
|
||||
points: ['bc', 'tl'],
|
||||
}}
|
||||
mouseEnterDelay={0}
|
||||
>
|
||||
<span>Hello world!</span>
|
||||
</Tooltip>,
|
||||
);
|
||||
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
const button = wrapper.find('span').at(0);
|
||||
button.simulate('mouseenter');
|
||||
await sleep(600);
|
||||
expect(wrapper.instance().getPopupDomNode().className).toContain('ant-tooltip');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user