diff options
author | Max <max@nextcloud.com> | 2022-07-27 18:40:54 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-07-27 18:40:54 +0300 |
commit | d78b66dd5ce10c5944e0adb377e53e1a8fbaf2e9 (patch) | |
tree | 4fa2a2c06458045d3882aeaab69b3e2d52705a57 /cypress | |
parent | 413e8c901b39009d718c31caf7abd1c6dce7dd68 (diff) |
fix: wait for ui feedback when deleting filetest/fix-cypress
Avoid race conditions like https://github.com/nextcloud/text/runs/7537522575
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/support/commands.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 871b88ad3..f8c5e6bd7 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -227,6 +227,7 @@ Cypress.Commands.add('getFile', fileName => { Cypress.Commands.add('deleteFile', fileName => { cy.get(`.files-fileList tr[data-file="${fileName}"] a.name .action-menu`).click() cy.get(`.files-fileList tr[data-file="${fileName}"] a.name + .popovermenu .action-delete`).click() + cy.get(`.files-fileList tr[data-file="${fileName}"]`).should('not.exist') }) Cypress.Commands.add('getEditor', () => { |