diff --git a/pages/component/map/map.test.js b/pages/component/map/map.test.js index be6452412f97214eea89f37ac1dfada13e471f02..d354cf81d6c2fcff5e2da50c5612ecaa21c3d0e2 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 6770334612fd5a36b01678580866566c27c2fdbe..592057b3dd4dad339a3db2015429e2ca80ada65c 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',