diff --git a/cypress/e2e/sharing/download-share-disabled.cy.js b/cypress/e2e/sharing/download-share-disabled.cy.js index 3c4541efa..32699955e 100644 --- a/cypress/e2e/sharing/download-share-disabled.cy.js +++ b/cypress/e2e/sharing/download-share-disabled.cy.js @@ -84,9 +84,10 @@ describe(`Download ${fileName} in viewer`, function() { .and('not.have.class', 'icon-loading') }) - it('See the title on the viewer header but not the Download button', function() { - cy.get('body > .viewer .modal-title').should('contain', 'image1.jpg') - cy.get('body > .viewer .modal-header a.action-item .download-icon').should('not.exist') + it('See the title on the viewer header but not the Download nor the menu button', function() { + cy.get('body > .viewer .modal-name').should('contain', 'image1.jpg') + cy.get('body a[download="image1.jpg"]').should('not.exist') + cy.get('body > .viewer .modal-header button.action-item__menutoggle').should('not.exist') cy.get('body > .viewer .modal-header button.header-close').should('be.visible') })