Skip to content

Commit eac1127

Browse files
authored
Merge pull request #2222 from nextcloud/fix/cypress-share-download
2 parents 75943b0 + 89a7c5c commit eac1127

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cypress/e2e/sharing/download-share-disabled.cy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ describe(`Download ${fileName} in viewer`, function() {
9898
.and('not.have.class', 'icon-loading')
9999
})
100100

101-
it('See the title on the viewer header but not the Download button', function() {
101+
it('See the title on the viewer header but not the Download nor the menu button', function() {
102102
cy.get('body > .viewer .modal-name').should('contain', 'image1.jpg')
103-
cy.get('body > .viewer .modal-header a.action-item .download-icon').should('not.exist')
103+
cy.get('body a[download="image1.jpg"]').should('not.exist')
104+
cy.get('body > .viewer .modal-header button.action-item__menutoggle').should('not.exist')
104105
cy.get('body > .viewer .modal-header button.header-close').should('be.visible')
105106
})
106107

0 commit comments

Comments
 (0)