chore: Update rc-trigger related version (#26803)

* bump rc-select version

* bump rc-dropdown version

* bump rc-mentions version

* bump rc-picker version

* bump rc-cascader & rc-menu version

* bump rc-slider version

* update rc-motion

* update rc-select version

* rm sleep in test case

* 📦 reduce bundlesize limit to 280kb

Co-authored-by: 偏右 <afc163@gmail.com>
This commit is contained in:
二货机器人 2020-09-18 13:01:36 +08:00 committed by GitHub
parent 935773a0d0
commit c592714c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 19 deletions

View File

@ -43,6 +43,4 @@ Array [
]
`;
exports[`Popover should show overlay when trigger is clicked 1`] = `"<div class=\\"ant-popover-content\\"><div class=\\"ant-popover-arrow\\"><span class=\\"ant-popover-arrow-content\\"></span></div><div class=\\"ant-popover-inner\\" role=\\"tooltip\\"><div class=\\"ant-popover-title\\">code</div><div class=\\"ant-popover-inner-content\\">console.log('hello world')</div></div></div>"`;
exports[`Popover shows content for render functions 1`] = `"<div class=\\"ant-popover-content\\"><div class=\\"ant-popover-arrow\\"><span class=\\"ant-popover-arrow-content\\"></span></div><div class=\\"ant-popover-inner\\" role=\\"tooltip\\"><div class=\\"ant-popover-title\\">some-title</div><div class=\\"ant-popover-inner-content\\">some-content</div></div></div>"`;

View File

@ -2,13 +2,12 @@ import React from 'react';
import { render, mount } from 'enzyme';
import Popover from '..';
import mountTest from '../../../tests/shared/mountTest';
import { sleep } from '../../../tests/utils';
import ConfigProvider from '../../config-provider';
describe('Popover', () => {
mountTest(Popover);
it('should show overlay when trigger is clicked', async () => {
it('should show overlay when trigger is clicked', () => {
const ref = React.createRef();
const popover = mount(
@ -20,12 +19,7 @@ describe('Popover', () => {
expect(ref.current.getPopupDomNode()).toBe(null);
popover.find('span').simulate('click');
await sleep(100);
const popup = ref.current.getPopupDomNode();
expect(popup).not.toBe(null);
expect(popup.className).toContain('ant-popover-placement-top');
expect(popup.innerHTML).toMatchSnapshot();
expect(popover.find('Trigger PopupInner').props().visible).toBeTruthy();
});
it('shows content for render functions', () => {

View File

@ -118,33 +118,33 @@
"omit.js": "^2.0.2",
"raf": "^3.4.1",
"rc-animate": "~3.1.0",
"rc-cascader": "~1.3.0",
"rc-cascader": "~1.4.0",
"rc-checkbox": "~2.3.0",
"rc-collapse": "~2.0.0",
"rc-dialog": "~8.2.1",
"rc-drawer": "~4.1.0",
"rc-dropdown": "~3.1.2",
"rc-dropdown": "~3.2.0",
"rc-field-form": "~1.10.0",
"rc-image": "~3.0.6",
"rc-input-number": "~6.0.0",
"rc-mentions": "~1.4.0",
"rc-menu": "~8.6.1",
"rc-mentions": "~1.5.0",
"rc-menu": "~8.7.1",
"rc-motion": "^2.0.0",
"rc-notification": "~4.4.0",
"rc-pagination": "~3.0.3",
"rc-picker": "~2.0.6",
"rc-picker": "~2.1.0",
"rc-progress": "~3.1.0",
"rc-rate": "~2.8.2",
"rc-resize-observer": "^0.2.3",
"rc-select": "~11.3.1",
"rc-slider": "~9.3.0",
"rc-select": "~11.3.2",
"rc-slider": "~9.4.1",
"rc-steps": "~4.1.0",
"rc-switch": "~3.2.0",
"rc-table": "~7.9.2",
"rc-tabs": "~11.6.0",
"rc-textarea": "~0.3.0",
"rc-tooltip": "~5.0.0",
"rc-tree": "~3.9.0",
"rc-tree": "~3.10.0",
"rc-tree-select": "~4.1.1",
"rc-trigger": "~5.0.3",
"rc-upload": "~3.3.1",
@ -294,7 +294,7 @@
"bundlesize": [
{
"path": "./dist/antd.min.js",
"maxSize": "300 kB"
"maxSize": "280 kB"
},
{
"path": "./dist/antd.min.css",