Skip to content

Commit

Permalink
test: try to fix the pr check
Browse files Browse the repository at this point in the history
  • Loading branch information
zpc7 committed May 6, 2022
1 parent ee660cc commit 0cec468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tooltip/__tests__/tooltip.test.js
Expand Up @@ -345,8 +345,8 @@ describe('Tooltip', () => {
expect(container.getElementsByTagName('span')).toHaveLength(1);
const button = container.getElementsByTagName('span')[0];
fireEvent.mouseEnter(button);
await sleep(500);
expect(ref.current.getPopupDomNode().className).toBe('placement-topRight');
await sleep(1000);
expect(ref.current.getPopupDomNode().className).toContain('placement-topRight');
});

it('should works for mismatch placement', async () => {
Expand Down

0 comments on commit 0cec468

Please sign in to comment.