mirror of
https://github.com/apache/superset.git
synced 2024-09-16 10:39:55 -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 () => {
|
test('Render a FilterInput', async () => {
|
||||||
const onChangeHandler = jest.fn();
|
const onChangeHandler = jest.fn();
|
||||||
render(<FilterInput onChangeHandler={onChangeHandler} />);
|
render(<FilterInput onChangeHandler={onChangeHandler} />);
|
||||||
|
expect(await screen.findByRole('textbox')).toBeInTheDocument();
|
||||||
|
|
||||||
expect(onChangeHandler).toBeCalledTimes(0);
|
expect(onChangeHandler).toBeCalledTimes(0);
|
||||||
userEvent.type(screen.getByRole('textbox'), 'test');
|
userEvent.type(screen.getByRole('textbox'), 'test');
|
||||||
|
Loading…
Reference in New Issue
Block a user