Skip to content

Commit

Permalink
fixed unreliable PickerInput test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyManetov committed Mar 19, 2024
1 parent 20bed10 commit b093ee6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uui/components/pickers/__tests__/PickerInput.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,10 @@ describe('PickerInput', () => {

expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
fireEvent.change(dom.input, { target: { value: 'A' } });
const pickerBody = await PickerInputTestObject.findDialog();
await waitFor(() => expect(pickerBody).toBeInTheDocument());
await waitFor(async () => {
const pickerBody = await PickerInputTestObject.findDialog();
expect(pickerBody).toBeInTheDocument();
});
});

it('should use modal edit mode', async () => {
Expand Down

0 comments on commit b093ee6

Please sign in to comment.