diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-06-20 17:16:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 17:16:29 +0300 |
commit | 5290bec342abb845d4f4cd87af2c3aa3a7799a55 (patch) | |
tree | b624facbd3934fb2f01a9184e76999075229748f | |
parent | bff504179291b12228ead3ba565475f3f958660a (diff) | |
parent | 10daea3cda5ff6c3b91244a445bfd6624fe81ada (diff) |
Merge branch 'master' into susnux-fix/formatting-help
-rw-r--r-- | cypress/e2e/images.spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cypress/e2e/images.spec.js b/cypress/e2e/images.spec.js index 0926dd6d1..5c9d98032 100644 --- a/cypress/e2e/images.spec.js +++ b/cypress/e2e/images.spec.js @@ -79,11 +79,11 @@ const clickOnImageAction = (actionName) => { */ const checkImage = (documentId, imageName, imageId, index) => { const encodedName = fixedEncodeURIComponent(imageName) + const src = `.attachments.${documentId}/${encodedName}` - cy.log('Check the image is visible and well formed', { documentId, imageName, imageId, index, encodedName }) + cy.log('Check the image is visible and well formed', documentId, imageName, imageId, index, encodedName) return new Cypress.Promise((resolve, reject) => { - cy.get('#editor [data-component="image-view"]') - .filter('[data-src=".attachments.' + documentId + '/' + encodedName + '"]') + cy.get(`#editor [data-component="image-view"][data-src="${src}"]`) .find('.image__view') // wait for load finish .within(($el) => { // keep track that we have created this image in the attachment dir |