From 5c0d2a341b9688c00f301105005860b306a69604 Mon Sep 17 00:00:00 2001 From: taohebin Date: Fri, 31 May 2024 10:53:12 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=94=B9=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E8=AE=BF=E9=97=AE=E7=BD=91=E7=BB=9Capi=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E4=BE=8B=EF=BC=8C?= =?UTF-8?q?=E5=B1=8F=E8=94=BD15=E5=8F=8A=E4=BB=A5=E4=B8=8B=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/download-file/download-file.test.js | 4 ++-- pages/API/request/request.test.js | 4 ++-- pages/API/upload-file/upload-file.test.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/API/download-file/download-file.test.js b/pages/API/download-file/download-file.test.js index eb83f41c..4d98b079 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 1931eac7..336d8ac3 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 69742c3f..9dad0a2f 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); -- GitLab