From 8295b5ac5119db0ad59563204d3a5f3d987b5180 Mon Sep 17 00:00:00 2001 From: Vlad Babich Date: Fri, 5 Jan 2024 14:29:54 -0700 Subject: [PATCH] Fix overlapping act() calls warning in unit tests --- packages/components/src/TimeInput.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/TimeInput.test.tsx b/packages/components/src/TimeInput.test.tsx index dc266f4858..6926e0bce2 100644 --- a/packages/components/src/TimeInput.test.tsx +++ b/packages/components/src/TimeInput.test.tsx @@ -114,7 +114,7 @@ describe('selection', () => { input.focus(); input.setSelectionRange(selectionStart, selectionEnd, selectionDirection); - user.type(input, '{Shift}', { + await user.type(input, '{Shift}', { skipClick: true, initialSelectionStart: selectionStart, initialSelectionEnd: selectionEnd,