diff --git a/pages/API/download-file/download-file.test.js b/pages/API/download-file/download-file.test.js index eb83f41c0b0fdb4300b1ed4167f2e350f962b5c4..4d98b0792887b2a84d11cc4f0e5e850966ef51b5 100644 --- a/pages/API/download-file/download-file.test.js +++ b/pages/API/download-file/download-file.test.js @@ -37,11 +37,11 @@ describe('ExtApi-DownloadFile', () => { expect(res).toBe(true); }); - // 15以下的模拟器所对应的xcode不能编译自定义插件 + // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备 let version = process.env.uniTestPlatformInfo let split = version.split(" ") version = parseInt(split[split.length - 1]) - if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 14) { + if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 15) { it('Check Download File In UTS Module', async () => { res = await page.callMethod('jest_uts_module_invoked') await page.waitFor(2000); diff --git a/pages/API/request/request.test.js b/pages/API/request/request.test.js index 1931eac7fb2fc4571243a8afd8d0f540b6af7063..336d8ac3a108585815789a26c412a6d33ec73801 100644 --- a/pages/API/request/request.test.js +++ b/pages/API/request/request.test.js @@ -131,11 +131,11 @@ describe('ExtApi-Request', () => { expect(res).toBe(true) }) - // 15以下的模拟器所对应的xcode不能编译自定义插件 + // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备 let version = process.env.uniTestPlatformInfo let split = version.split(" ") version = parseInt(split[split.length - 1]) - if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 14) { + if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 15) { it('Check Post In UTS Module', async () => { res = await page.callMethod('jest_uts_module_invoked') await page.waitFor(2000); diff --git a/pages/API/upload-file/upload-file.test.js b/pages/API/upload-file/upload-file.test.js index 69742c3fdd0e8f6b6e9770897bf337bb7752b6bf..9dad0a2fba6c36146187b2a20e9c6b9754ba0ae8 100644 --- a/pages/API/upload-file/upload-file.test.js +++ b/pages/API/upload-file/upload-file.test.js @@ -43,11 +43,11 @@ describe('ExtApi-UploadFile', () => { expect(res).toBe(true); }); - // 15以下的模拟器所对应的xcode不能编译自定义插件 + // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备 let version = process.env.uniTestPlatformInfo let split = version.split(" ") version = parseInt(split[split.length - 1]) - if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 14) { + if(!process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios') || version > 15) { it('Check Upload File In UTS Module', async () => { res = await page.callMethod('jest_uts_module_invoked') await page.waitFor(2000);