deps: bump rc-dialog to 9.5.1 (#49284)

* deps: bump rc-dialog to 9.5.1

* chore: update

* chore(deps): bump rc-image to  7.9.0

* test: update case

* Revert "test: update case"

This reverts commit cdfbdbac1b.

* test: update case

Co-authored-by: zombieJ <zombieJ@users.noreply.github.com>

* empty

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: zombieJ <zombieJ@users.noreply.github.com>
This commit is contained in:
2024-06-07 16:42:14 +08:00 committed by GitHub
parent c105f2e84b
commit d66ed648a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import Modal from '..';
import { resetWarned } from '../../_util/warning';
import mountTest from '../../../tests/shared/mountTest';
import rtlTest from '../../../tests/shared/rtlTest';
import { fireEvent, render } from '../../../tests/utils';
import { createEvent, fireEvent, render } from '../../../tests/utils';
jest.mock('rc-util/lib/Portal');
@ -86,7 +86,12 @@ describe('Modal', () => {
);
};
const { container } = render(<Demo />);
fireEvent.click(container.querySelectorAll('#trigger')[0]);
const triggerEle = container.querySelectorAll('#trigger')[0];
const clickEvent = createEvent.click(triggerEle) as any;
clickEvent.pageX = 100;
clickEvent.pageY = 100;
fireEvent(triggerEle, clickEvent);
expect(
(container.querySelectorAll('.ant-modal')[0] as HTMLDivElement).style.transformOrigin,
).toBeTruthy();

View File

@ -133,11 +133,11 @@
"rc-cascader": "~3.26.0",
"rc-checkbox": "~3.3.0",
"rc-collapse": "~3.7.3",
"rc-dialog": "~9.4.0",
"rc-dialog": "~9.5.2",
"rc-drawer": "~7.2.0",
"rc-dropdown": "~4.2.0",
"rc-field-form": "~2.2.0",
"rc-image": "~7.8.1",
"rc-image": "~7.9.0",
"rc-input": "~1.5.1",
"rc-input-number": "~9.1.0",
"rc-mentions": "~2.14.0",