提交 5bacdb74 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

fix: 增加延迟,适配低版本 ios

上级 7ce03da7
...@@ -19,7 +19,7 @@ it('callMethodTest', async () => { ...@@ -19,7 +19,7 @@ it('callMethodTest', async () => {
new Promise((resolve, _) => { new Promise((resolve, _) => {
setTimeout(() => { setTimeout(() => {
resolve('') resolve('')
}, 1000) }, 1500)
}) })
await page.callMethod('onButtonClick') await page.callMethod('onButtonClick')
......
...@@ -18,7 +18,7 @@ it('callMethodTest', async () => { ...@@ -18,7 +18,7 @@ it('callMethodTest', async () => {
new Promise((resolve, _) => { new Promise((resolve, _) => {
setTimeout(() => { setTimeout(() => {
resolve('') resolve('')
}, 1000) }, 1500)
}) })
await page.callMethod('onButtonClick') await page.callMethod('onButtonClick')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册