diff --git a/cypress/e2e/sharing/single-file-share.cy.js b/cypress/e2e/sharing/single-file-share.cy.js index dbf98173a..e818b652a 100644 --- a/cypress/e2e/sharing/single-file-share.cy.js +++ b/cypress/e2e/sharing/single-file-share.cy.js @@ -50,7 +50,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() { @@ -60,6 +60,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') }) })