From 64b49c9dc265e8754d948746b6ad6f1df93764af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Wed, 20 Nov 2024 19:18:29 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=B1=8F=E8=94=BD=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/animation-frame/animation-frame.test.js | 8 +++++++- pages/component/swiper/swiper-list-view.test.js | 6 ++++++ pages/component/web-view/web-view/web-view-local.test.js | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/pages/API/animation-frame/animation-frame.test.js b/pages/API/animation-frame/animation-frame.test.js index 6e96a0a1..a4ab0caa 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 a8b1b998..16ab9823 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 d8a37419..18c73355 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 () => { -- GitLab