mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
test: fix form test case (#38276)
This commit is contained in:
parent
b0fe69c18f
commit
9893efeb51
@ -179,15 +179,15 @@ describe('Form', () => {
|
||||
const { container } = render(<Demo />);
|
||||
|
||||
await changeValue(0, '1');
|
||||
await waitFakeTimer();
|
||||
await waitFakeTimer(2000);
|
||||
expect(container.querySelector('.ant-form-item-explain-error')).toHaveTextContent('aaa');
|
||||
|
||||
await changeValue(0, '2');
|
||||
await waitFakeTimer();
|
||||
await waitFakeTimer(2000);
|
||||
expect(container.querySelector('.ant-form-item-explain-error')).toHaveTextContent('ccc');
|
||||
|
||||
await changeValue(0, '1');
|
||||
await waitFakeTimer();
|
||||
await waitFakeTimer(2000);
|
||||
expect(container.querySelector('.ant-form-item-explain-error')).toHaveTextContent('aaa');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user