mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
test: Fix act error in FilterInput test (#21407)
This commit is contained in:
parent
9ada541fd9
commit
2f8cc44c5d
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user