WIP: #7354 zone_missing_e2e #1030

Draft
jsegarra wants to merge 191 commits from 7354_zone_missing_e2e into dev
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 8688f2a3aa - Show all commits
src/composables
test/vitest/__tests__/composables

View File

@ -9,7 +9,7 @@ const token = getTokenMultimedia();
export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) {
const appUrl = (await getUrl('', 'lilium')).replace('/#/', '');
const response = await axios.get(
url ?? `${appUrl}/${model}/${id}${urlPath}?access_token=${token}`,
url ?? `${appUrl}/api/${model}/${id}${urlPath}?access_token=${token}`,
{ responseType: 'blob' }
);

View File

@ -29,7 +29,7 @@ describe('downloadFile', () => {
await downloadFile(1);
expect(axios.get).toHaveBeenCalledWith(
`${baseUrl}/dms/1/downloadFile?access_token=${token}`,
`${baseUrl}/api/dms/1/downloadFile?access_token=${token}`,
{ responseType: 'blob' }
);
});