mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
需要等待一下 ui 更新
This commit is contained in:
parent
8404de5969
commit
f16652a395
@ -272,6 +272,7 @@ test('Renderer:Form initApi', async () => {
|
||||
// fetch 调用了,所有 initApi 接口调用了
|
||||
expect(fetcher).toHaveBeenCalled();
|
||||
await p0;
|
||||
await wait(10);
|
||||
|
||||
// 通过 snapshot 可断定 initApi 返回值已经作用到了表单项上。
|
||||
expect(container).toMatchSnapshot();
|
||||
|
Loading…
Reference in New Issue
Block a user