diff --git a/pages/API/upload-file/upload-file.test.js b/pages/API/upload-file/upload-file.test.js index 2789b9e9a16565ad3576dc2da7572aaa7b590347..69742c3fdd0e8f6b6e9770897bf337bb7752b6bf 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不能编译自定义插件 @@ -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 @@ -