diff --git a/pages/API/upload-file/upload-file.test.js b/pages/API/upload-file/upload-file.test.js index 5d04326500bd4fa15a07dc14ab8c41c3a6bfafe7..9dad0a2fba6c36146187b2a20e9c6b9754ba0ae8 100644 --- a/pages/API/upload-file/upload-file.test.js +++ b/pages/API/upload-file/upload-file.test.js @@ -34,6 +34,13 @@ describe('ExtApi-UploadFile', () => { await page.waitFor(2000); res = await page.data('jest_result'); expect(res).toBe(true) + }); + + it('Check uni.env', async () => { + await page.callMethod('jest_uploadFile_with_uni_env'); + await page.waitFor(2000); + res = await page.data('jest_result'); + expect(res).toBe(true); }); // 15以下的模拟器所对应的xcode不能编译自定义插件,大于15是因为某台设备,会用xcode14.1跑15.5的设备 @@ -47,7 +54,9 @@ describe('ExtApi-UploadFile', () => { res = await page.data('jest_result'); expect(res).toBe(true) }) - } + } + + let shouldTestCookie = false if (process.env.uniTestPlatformInfo.startsWith('android') && !process.env.UNI_AUTOMATOR_APP_WEBVIEW) { diff --git a/pages/API/upload-file/upload-file.uvue b/pages/API/upload-file/upload-file.uvue index 8878c52198a383fa8345365d107e50d829a42473..180768a8496c2542ae743ebf8073332908193fec 100644 --- a/pages/API/upload-file/upload-file.uvue +++ b/pages/API/upload-file/upload-file.uvue @@ -15,13 +15,13 @@ -