From a1e3c3f5d6e6a349104e7693b9089c719815e1b8 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Fri, 16 Aug 2024 21:34:25 +0800 Subject: [PATCH] =?UTF-8?q?test(editor.test.js):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/editor/editor.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index ae7dc718..55f8b070 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(); }) -- GitLab