Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheiy committed Mar 22, 2024
1 parent 5f15e55 commit 22c4f85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uui/components/pickers/__tests__/PickerInput.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 22c4f85

Please sign in to comment.