提交 92c858db 编写于 作者: Anne_LXM's avatar Anne_LXM

test(map.test.js): 调整测试例并去掉pages.test.js中的截图

上级 2c2e1c13
...@@ -9,8 +9,10 @@ describe('web-map', () => { ...@@ -9,8 +9,10 @@ describe('web-map', () => {
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch('/pages/component/map/map') page = await program.reLaunch('/pages/component/map/map')
await page.waitFor('view'); 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) await page.callMethod('updateAutoTest',true)
}); });
......
...@@ -317,7 +317,6 @@ if (isWeb) { ...@@ -317,7 +317,6 @@ if (isWeb) {
'/pages/component/movable-view/movable-view', '/pages/component/movable-view/movable-view',
'/pages/component/label/label', '/pages/component/label/label',
'/pages/component/picker/picker', '/pages/component/picker/picker',
'/pages/component/map/map',
'/pages/component/editor/editor', '/pages/component/editor/editor',
'/pages/API/get-image-info/get-image-info', '/pages/API/get-image-info/get-image-info',
'/pages/API/get-video-info/get-video-info', '/pages/API/get-video-info/get-video-info',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册