提交 a1e3c3f5 编写于 作者: Anne_LXM's avatar Anne_LXM

test(editor.test.js): 调整测试例

上级 b5ee2a1b
......@@ -76,8 +76,12 @@ describe('editor.uvue', () => {
await page.waitFor(async () => {
return await page.data('insertImageTest') === true || (Date.now() - start1 > 2000)
})
})
it('insertImage-screenshot', async () => {
await setBlur()
await page.waitFor(2000)
const waitTime = process.env.uniTestPlatformInfo.includes('firefox') ? 5000:2000
await page.waitFor(waitTime)
expect(await program.screenshot()).toSaveImageSnapshot();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册