From c20fe8a76b01625caeb88c7974ea1675f2dbc2bf Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 19 Jun 2024 11:39:24 +0800 Subject: [PATCH] =?UTF-8?q?test(general=20event):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/general-event/general-event.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/component/general-event/general-event.test.js b/pages/component/general-event/general-event.test.js index 6aa1510a..81c1df85 100644 --- a/pages/component/general-event/general-event.test.js +++ b/pages/component/general-event/general-event.test.js @@ -2,8 +2,9 @@ const PAGE_PATH = '/pages/component/general-event/general-event' describe('event trigger', () => { const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() - const isAndroid = platformInfo.startsWith('android') - const isIos = platformInfo.startsWith('ios') + const osName = process.env.UNI_OS_NAME.toLocaleLowerCase() + const isAndroid = osName.startsWith('android') + const isIos = osName.startsWith('ios') let page beforeAll(async () => { page = await program.navigateTo(PAGE_PATH) -- GitLab