From 7dad61da6edd8571b2f9b98e4bf0a019e8079cf0 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Sat, 12 Oct 2024 14:39:43 +0800 Subject: [PATCH] =?UTF-8?q?test(editor):=E8=B0=83=E6=95=B4=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/editor/editor.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index 016014ba..997f5200 100644 --- a/pages/component/editor/editor.test.js +++ b/pages/component/editor/editor.test.js @@ -1,7 +1,10 @@ // 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 (!process.env.uniTestPlatformInfo.startsWith('web')) { + if (isAndroid || isIos) { it('app', () => { expect(1).toBe(1) }) -- GitLab