Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2022-07-27 18:40:54 +0300
committerMax <max@nextcloud.com>2022-07-27 18:40:54 +0300
commitd78b66dd5ce10c5944e0adb377e53e1a8fbaf2e9 (patch)
tree4fa2a2c06458045d3882aeaab69b3e2d52705a57 /cypress
parent413e8c901b39009d718c31caf7abd1c6dce7dd68 (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.js1
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', () => {