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:
authorJulien Veyssier <eneiluj@posteo.net>2022-08-26 11:38:25 +0300
committerJulien Veyssier <eneiluj@posteo.net>2022-09-06 15:44:53 +0300
commit4ccc31e6bf3fe76e660274c21ad3eb10aa6ee5be (patch)
treea96a0607db2688617d4ba817eb16eda79cb472e1 /cypress
parentc18a030f076f123a5d5172e1b6ece6be27d92c3f (diff)
rename 'insert attachment' menu action, wait for metadata before resolving loadImage
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/images.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/cypress/e2e/images.spec.js b/cypress/e2e/images.spec.js
index df4e71674..f0676ee41 100644
--- a/cypress/e2e/images.spec.js
+++ b/cypress/e2e/images.spec.js
@@ -28,8 +28,8 @@ const randUser2 = randHash()
let currentUser = randUser
const attachmentFileNameToId = {}
-const ACTION_UPLOAD_LOCAL_FILE = 'insert-image-upload'
-const ACTION_INSERT_FROM_FILES = 'insert-image-insert'
+const ACTION_UPLOAD_LOCAL_FILE = 'insert-attachment-upload'
+const ACTION_INSERT_FROM_FILES = 'insert-attachment-insert'
// const ACTION_INSERT_FROM_LINK = 3
/**
@@ -61,7 +61,7 @@ function fixedEncodeURIComponent(str) {
* @param {string} actionName position of the action to be clicked
*/
const clickOnImageAction = (actionName) => {
- cy.getActionEntry('insert-image')
+ cy.getActionEntry('insert-attachment')
.click()
return cy.get('.v-popper__wrapper .open')