From 92955d876ac6fadb211f728037401a1218166c1f Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 3 Jul 2024 17:55:04 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B=E5=9C=A8app=E5=B9=B3=E5=8F=B0=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/component/canvas/canvas.test.js b/pages/component/canvas/canvas.test.js index d0f31240..77080c4e 100644 --- a/pages/component/canvas/canvas.test.js +++ b/pages/component/canvas/canvas.test.js @@ -1,6 +1,9 @@ let page -beforeAll(async () => { +beforeAll(async () => { + if (!process.env.uniTestPlatformInfo.toLowerCase().startsWith('web')) { + return + } page = await program.reLaunch('/pages/component/canvas/canvas') await page.waitFor(2000) }) -- GitLab