Skip to content

Commit

Permalink
Merge pull request #2659 from nextcloud/test/wait-for-commands
Browse files Browse the repository at this point in the history
[stable24] fix: return promise in cypress command to wait for it
  • Loading branch information
mejo- authored Jul 6, 2022
2 parents f454bda + 5ae4e58 commit e1f374f
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 @@ -141,7 +141,7 @@ Cypress.Commands.add('shareFileToUser', (userId, password, path, targetUserId) =

Cypress.Commands.add('createFolder', dirName => {
cy.window().then(win => {
win.OC.Files.getClient().createDirectory(dirName)
return win.OC.Files.getClient().createDirectory(dirName)
})
})

Expand Down

0 comments on commit e1f374f

Please sign in to comment.