From 709bb2077101510b50e9b1b4d2e9559b2f77b658 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Sun, 10 Mar 2024 11:22:56 +0100 Subject: [PATCH] fix(cypress): sharing download test Signed-off-by: skjnldsv --- cypress/e2e/sharing/download-share-disabled.cy.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/sharing/download-share-disabled.cy.ts b/cypress/e2e/sharing/download-share-disabled.cy.ts index 646681f17..0d862770d 100644 --- a/cypress/e2e/sharing/download-share-disabled.cy.ts +++ b/cypress/e2e/sharing/download-share-disabled.cy.ts @@ -98,9 +98,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() { + 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 > .viewer .modal-header a.action-item .download-icon').should('not.exist') + 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') })