describe('pages/storage/space-storage.vue',()=>{letpagebeforeAll(async()=>{// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)page=awaitprogram.navigateTo('/pages/storage/space-storage')awaitpage.waitFor('view')})it('space-storage-上传文件',async()=>{expect.assertions(2);constres=awaitpage.callMethod('uploadFile',{filePath:'../../static/logo.png',cloudPath:Date.now()+'test.png'})console.log('res: ',res);expect(res.success).toBeTruthy()expect(res.fileID).toEqual(expect.stringContaining('https'));})})