提交 c20fe8a7 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(general event): 调整获取测试环境逻辑

上级 e2ff6697
...@@ -2,8 +2,9 @@ const PAGE_PATH = '/pages/component/general-event/general-event' ...@@ -2,8 +2,9 @@ const PAGE_PATH = '/pages/component/general-event/general-event'
describe('event trigger', () => { describe('event trigger', () => {
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isAndroid = platformInfo.startsWith('android') const osName = process.env.UNI_OS_NAME.toLocaleLowerCase()
const isIos = platformInfo.startsWith('ios') const isAndroid = osName.startsWith('android')
const isIos = osName.startsWith('ios')
let page let page
beforeAll(async () => { beforeAll(async () => {
page = await program.navigateTo(PAGE_PATH) page = await program.navigateTo(PAGE_PATH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册