From beb251ec55561a21c06727d87669119133ebeaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 15 Aug 2023 11:34:31 +0200 Subject: [PATCH] fix(cypress): header sharing download button selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- cypress/e2e/sharing/single-file-share.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/sharing/single-file-share.cy.js b/cypress/e2e/sharing/single-file-share.cy.js index d2a9870d3..3cdd8c4bc 100644 --- a/cypress/e2e/sharing/single-file-share.cy.js +++ b/cypress/e2e/sharing/single-file-share.cy.js @@ -51,7 +51,7 @@ describe('See shared folder with link share', function() { cy.get('#imgframe > #viewer').should('be.visible') cy.scrollTo('bottom', { ensureScrollable: false }) - cy.get('a#downloadFile').should('be.visible') + cy.get(`#header a[href*="/s/${imageToken}/download"]`).should('be.visible') }) it('Opens the shared video in the viewer', function() { @@ -61,6 +61,6 @@ describe('See shared folder with link share', function() { cy.get('#imgframe > #viewer').should('be.visible') cy.scrollTo('bottom', { ensureScrollable: false }) - cy.get('a#downloadFile').should('be.visible') + cy.get(`#header a[href*="/s/${videoToken}/download"]`).should('be.visible') }) })