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

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');