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

test(chooseLocation): 测试自定义插件规避 ios 15以下

上级 e31cc977
...@@ -38,6 +38,11 @@ describe('dialog page', () => { ...@@ -38,6 +38,11 @@ describe('dialog page', () => {
expect(lifecycleNum).toBe(originLifeCycleNum - 1) expect(lifecycleNum).toBe(originLifeCycleNum - 1)
}) })
if (isIos) { if (isIos) {
// 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备
let version = process.env.uniTestPlatformInfo
let split = version.split(" ")
version = parseInt(split[split.length - 1])
if (version > 15) {
it('call chooseLocation in uts plugin', async () => { it('call chooseLocation in uts plugin', async () => {
page = await program.reLaunch('/pages/API/choose-location/choose-location') page = await program.reLaunch('/pages/API/choose-location/choose-location')
await page.waitFor('view'); await page.waitFor('view');
...@@ -47,6 +52,7 @@ describe('dialog page', () => { ...@@ -47,6 +52,7 @@ describe('dialog page', () => {
expect(lifecycleNum).toBe(originLifeCycleNum - 1) expect(lifecycleNum).toBe(originLifeCycleNum - 1)
}) })
} }
}
afterAll(async () => { afterAll(async () => {
await page.callMethod('setLifeCycleNum', originLifeCycleNum) await page.callMethod('setLifeCycleNum', originLifeCycleNum)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册