Skip to content

Commit

Permalink
Merge pull request #2222 from nextcloud/fix/cypress-share-download
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Mar 10, 2024
2 parents 75943b0 + 89a7c5c commit eac1127
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/sharing/download-share-disabled.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})

Expand Down

0 comments on commit eac1127

Please sign in to comment.