diff --git a/pages/API/animation-frame/animation-frame.test.js b/pages/API/animation-frame/animation-frame.test.js index 6e96a0a1fd712301143ff8ccb3b13f86259d7c6a..a4ab0caa3b830a0d53122352d570d6500c3b7db4 100644 --- a/pages/API/animation-frame/animation-frame.test.js +++ b/pages/API/animation-frame/animation-frame.test.js @@ -1,6 +1,12 @@ const PAGE_PATH = '/pages/API/animation-frame/animation-frame' -describe('API-cancelAnimationFrame', () => { +describe('API-cancelAnimationFrame', () => { + if (process.env.uniTestPlatformInfo.startsWith('mp')) { + it('other platform', () => { + expect(1).toBe(1) + }) + return + } let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) diff --git a/pages/component/swiper/swiper-list-view.test.js b/pages/component/swiper/swiper-list-view.test.js index a8b1b998905229ac894198d10deff21d66040968..16ab98230a15dbca0446e6b03d3011266056a9fb 100644 --- a/pages/component/swiper/swiper-list-view.test.js +++ b/pages/component/swiper/swiper-list-view.test.js @@ -1,4 +1,10 @@ describe('component-swiper-list-view', () => { + if (process.env.uniTestPlatformInfo.startsWith('mp')) { + it('other platform', () => { + expect(1).toBe(1) + }) + return + } let page beforeAll(async () => { //打开swiper-list-view测试页 diff --git a/pages/component/web-view/web-view/web-view-local.test.js b/pages/component/web-view/web-view/web-view-local.test.js index d8a37419077bf717d9ea0892ce080e7ca99e97a1..18c7335562266f855d01a374fb878a21680e1387 100644 --- a/pages/component/web-view/web-view/web-view-local.test.js +++ b/pages/component/web-view/web-view/web-view-local.test.js @@ -1,7 +1,7 @@ // uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/ describe('component-native-web-view', () => { - if (!process.env.uniTestPlatformInfo.startsWith('web') && !process.env.UNI_AUTOMATOR_APP_WEBVIEW) { + if (!process.env.uniTestPlatformInfo.startsWith('web') && !process.env.UNI_AUTOMATOR_APP_WEBVIEW && !process.env.uniTestPlatformInfo.startsWith('mp')) { let page; let start = 0; beforeAll(async () => {