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

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

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