diff --git a/pages/component/canvas/canvas.test.js b/pages/component/canvas/canvas.test.js index d0f31240c2d61c9183b472ddad20afc586266f79..77080c4edbf6dcf5f884730688660954d7ea20cd 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) })