mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
test: trigger form test (#38305)
This commit is contained in:
parent
0eb368f84a
commit
ea2d5b4482
@ -179,15 +179,15 @@ describe('Form', () => {
|
||||
const { container } = render(<Demo />);
|
||||
|
||||
await changeValue(0, '1');
|
||||
await waitFakeTimer(2000);
|
||||
await waitFakeTimer(2000, 2000);
|
||||
expect(container.querySelector('.ant-form-item-explain-error')).toHaveTextContent('aaa');
|
||||
|
||||
await changeValue(0, '2');
|
||||
await waitFakeTimer(2000);
|
||||
await waitFakeTimer(2000, 2000);
|
||||
expect(container.querySelector('.ant-form-item-explain-error')).toHaveTextContent('ccc');
|
||||
|
||||
await changeValue(0, '1');
|
||||
await waitFakeTimer(2000);
|
||||
await waitFakeTimer(2000, 2000);
|
||||
expect(container.querySelector('.ant-form-item-explain-error')).toHaveTextContent('aaa');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user