diff --git a/pages/component/general-event/general-event.test.js b/pages/component/general-event/general-event.test.js index 6aa1510a57d21dbda06928df040ba3e68bc15b15..81c1df85bb7a2bd1317297ee835ce793caac78be 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)