From c233885bdd9f08ecd866b7b6be3de65d9071f784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 13 Aug 2024 10:31:21 +0200 Subject: [PATCH] test(cypress): Fix download URL for public shares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/sharing/download-share.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/sharing/download-share.cy.ts b/cypress/e2e/sharing/download-share.cy.ts index 55facd0f9..faed8d555 100644 --- a/cypress/e2e/sharing/download-share.cy.ts +++ b/cypress/e2e/sharing/download-share.cy.ts @@ -89,14 +89,14 @@ describe(`Download ${fileName} from viewer in link share`, function() { it('See the full screen and download icons in the menu', function() { cy.get('body > .v-popper__popper ul span.fullscreen-icon').should('be.visible') - cy.get(`body > .v-popper__popper ul a.action-link[href*='/s/${token}/download']`).should('be.visible') + cy.get(`body > .v-popper__popper ul a.action-link[href*='/public.php/dav/files/${token}/image1.jpg']`).should('be.visible') }) it('Download the image', function() { // https://github.com/cypress-io/cypress/issues/14857 cy.window().then((win) => { setTimeout(() => { win.location.reload() }, 5000) }) // download the file - cy.get(`body > .v-popper__popper a.action-link[href*='/s/${token}/download']`).click() + cy.get(`body > .v-popper__popper ul a.action-link[href*='/public.php/dav/files/${token}/image1.jpg']`).click() }) it('Compare downloaded file with asset by size', function() {