From 92c858db1fd2bc2e3595605f4f375698d71b9601 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Thu, 22 Aug 2024 20:37:47 +0800 Subject: [PATCH] =?UTF-8?q?test(map.test.js):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B=E5=B9=B6=E5=8E=BB=E6=8E=89pages.tes?= =?UTF-8?q?t.js=E4=B8=AD=E7=9A=84=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/map/map.test.js | 4 +++- pages/pages.test.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/component/map/map.test.js b/pages/component/map/map.test.js index be645241..d354cf81 100644 --- a/pages/component/map/map.test.js +++ b/pages/component/map/map.test.js @@ -9,8 +9,10 @@ describe('web-map', () => { beforeAll(async () => { page = await program.reLaunch('/pages/component/map/map') await page.waitFor('view'); + await page.waitFor('map'); // 等待地图加载完成 - await page.waitFor(4000); + const waitTime = process.env.uniTestPlatformInfo.includes('firefox') ? 5000:4000 + await page.waitFor(waitTime) await page.callMethod('updateAutoTest',true) }); diff --git a/pages/pages.test.js b/pages/pages.test.js index 67703346..592057b3 100755 --- a/pages/pages.test.js +++ b/pages/pages.test.js @@ -317,7 +317,6 @@ if (isWeb) { '/pages/component/movable-view/movable-view', '/pages/component/label/label', '/pages/component/picker/picker', - '/pages/component/map/map', '/pages/component/editor/editor', '/pages/API/get-image-info/get-image-info', '/pages/API/get-video-info/get-video-info', -- GitLab