diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index ae7dc71815f7abcc98c195d8b3602613ccd9e824..55f8b070fd138c0fc423833f6ba7386083cfb0b7 100644 --- a/pages/component/editor/editor.test.js +++ b/pages/component/editor/editor.test.js @@ -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(); })