Skip to content

Commit

Permalink
fixup! debug: cypress failure on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Jun 23, 2023
1 parent 4a9e245 commit 7009a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ Cypress.Commands.add('uploadFile', (fileName, mimeType, target) => {
}
return cy.request('/csrftoken')
.then(({ body }) => {
cy.wait(500)
return cy.wrap(body.token)
})
.then(requesttoken => {
cy.wait(1000)
return axios.put(`${url}/remote.php/webdav/${fileName}`, file, {
headers: {
requesttoken,
Expand Down

0 comments on commit 7009a11

Please sign in to comment.