From bee8a29869468ae749ab3f98182ef99a870ab5c4 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Sat, 12 Oct 2024 20:50:22 +0800 Subject: [PATCH] =?UTF-8?q?test(editor):APP=5FWEBVIEW=E6=97=B6=E8=B7=91?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/editor/editor.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index 3e269d74..9a52ed7d 100644 --- a/pages/component/editor/editor.test.js +++ b/pages/component/editor/editor.test.js @@ -1,10 +1,8 @@ // uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/ jest.setTimeout(30000); -const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() -const isAndroid = platformInfo.startsWith('android') -const isIos = platformInfo.startsWith('ios') describe('editor.uvue', () => { - if (isAndroid || isIos) { + console.log('process.env',process.env) + if (!process.env.UNI_AUTOMATOR_APP_WEBVIEW || !process.env.uniTestPlatformInfo.startsWith('web')) { it('app', () => { expect(1).toBe(1) }) -- GitLab