diff --git a/uui/components/pickers/__tests__/PickerInput.test.tsx b/uui/components/pickers/__tests__/PickerInput.test.tsx index 7e8907ba4d..79bb9d554d 100644 --- a/uui/components/pickers/__tests__/PickerInput.test.tsx +++ b/uui/components/pickers/__tests__/PickerInput.test.tsx @@ -660,9 +660,10 @@ describe('PickerInput', () => { expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); - // eslint-disable-next-line testing-library/no-unnecessary-act + jest.useFakeTimers(); + fireEvent.change(dom.input, { target: { value: 'A' } }); act(() => { - fireEvent.change(dom.input, { target: { value: 'A' } }); + jest.runAllTimers(); }); const pickerBody = await PickerInputTestObject.findDialog(); return expect(pickerBody).toBeInTheDocument();