diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 55b02b84d22..83bec31f8d4 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -66,7 +66,7 @@ Cypress.Commands.add('uploadFile', (fileName, mimeType, target) => { return cy.wrap(body.token) }) .then(requesttoken => { - return axios.put(`${url}/remote.php/webdav/${fileName}`, file, { + return cy.wrap(axios.put(`${url}/remote.php/webdav/${fileName}`, file, { headers: { requesttoken, 'Content-Type': mimeType, @@ -81,7 +81,7 @@ Cypress.Commands.add('uploadFile', (fileName, mimeType, target) => { ) return fileId }) - }) + })) }) })