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') }) })