diff --git a/pages/component/map/map.test.js b/pages/component/map/map.test.js index 04e7d36b1c539c86ed73e788cf0b3ce9fb91701f..1036a896822053ae4ad44efc219308bf5a055776 100644 --- a/pages/component/map/map.test.js +++ b/pages/component/map/map.test.js @@ -7,7 +7,9 @@ describe('web-map', () => { beforeAll(async () => { page = await program.reLaunch('/pages/component/map/map') await page.waitFor('view'); - await page.waitFor('map'); + if(!platformInfo.startsWith('ios')){ + await page.waitFor('map'); + } // 等待地图加载完成 const waitTime = process.env.uniTestPlatformInfo.includes('firefox') ? 5000:4000 await page.waitFor(waitTime)