From e6032708f8f9c2841f41762d320e1e1c3fd25e59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:03:04 +0000 Subject: [PATCH 1/2] chore(deps): bump @rc-component/trigger from 1.18.3 to 2.0.0 Bumps [@rc-component/trigger](https://github.com/react-component/trigger) from 1.18.3 to 2.0.0. - [Release notes](https://github.com/react-component/trigger/releases) - [Changelog](https://github.com/react-component/trigger/blob/master/HISTORY.md) - [Commits](https://github.com/react-component/trigger/compare/v1.18.3...2.0.0) --- updated-dependencies: - dependency-name: "@rc-component/trigger" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f3e5f951..9930fcccd 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "dependencies": { "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^1.5.0", + "@rc-component/trigger": "^2.0.0", "classnames": "^2.2.1", "rc-overflow": "^1.3.2", "rc-resize-observer": "^1.4.0", From fa821a0dad60d49cf245fdc15f1df69bf561d599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Fri, 8 Mar 2024 11:31:13 +0800 Subject: [PATCH 2/2] test: fix test case --- tests/new-range.spec.tsx | 4 ++-- tests/picker.spec.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/new-range.spec.tsx b/tests/new-range.spec.tsx index 1dad906ff..df28e1a2a 100644 --- a/tests/new-range.spec.tsx +++ b/tests/new-range.spec.tsx @@ -686,7 +686,7 @@ describe('NewPicker.Range', () => { }); // Close panel to auto focus next end field - fireEvent.click(document.body); + fireEvent.mouseDown(document.body); act(() => { jest.runAllTimers(); }); @@ -705,7 +705,7 @@ describe('NewPicker.Range', () => { }); // Close panel to auto focus next end field - fireEvent.click(document.body); + fireEvent.mouseDown(document.body); act(() => { jest.runAllTimers(); diff --git a/tests/picker.spec.tsx b/tests/picker.spec.tsx index 76db881a6..d6751c775 100644 --- a/tests/picker.spec.tsx +++ b/tests/picker.spec.tsx @@ -171,7 +171,7 @@ describe('Picker.Basic', () => { for (let i = 0; i < 10; i += 1) { act(() => { - fireEvent.click(document.body); + fireEvent.mouseDown(document.body); jest.runAllTimers(); }); expect(onOpenChange).toHaveBeenCalledTimes(i + 1);