mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +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