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:
authorVinicius Reis <vinicius.reis@nextcloud.com>2022-06-20 17:16:29 +0300
committerGitHub <noreply@github.com>2022-06-20 17:16:29 +0300
commit5290bec342abb845d4f4cd87af2c3aa3a7799a55 (patch)
treeb624facbd3934fb2f01a9184e76999075229748f
parentbff504179291b12228ead3ba565475f3f958660a (diff)
parent10daea3cda5ff6c3b91244a445bfd6624fe81ada (diff)
Merge branch 'master' into susnux-fix/formatting-help
-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 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