test: Fix act error in FilterInput test (#21407)

This commit is contained in:
Lyndsi Kay Williams 2022-09-09 11:10:41 -05:00 committed by GitHub
parent 9ada541fd9
commit 2f8cc44c5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ jest.mock('lodash/debounce', () => ({
test('Render a FilterInput', async () => {
const onChangeHandler = jest.fn();
render(<FilterInput onChangeHandler={onChangeHandler} />);
expect(await screen.findByRole('textbox')).toBeInTheDocument();
expect(onChangeHandler).toBeCalledTimes(0);
userEvent.type(screen.getByRole('textbox'), 'test');