Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(cypress): hide download
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Mar 7, 2024
commit 914e2a1069d9340c2ef47f572a8fac19e2c57976
6 changes: 4 additions & 2 deletions cypress/e2e/sharing/download-share-disabled.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ describe(`Download ${fileName} in viewer`, function() {
// Open the share menu
cy.get('.sharing-link-list > .sharing-entry button[aria-label*="Actions for "]').click()
cy.get('.action-button:contains(\'Customize link\')').click()
cy.get('span:contains(\'Hide download\')').as('hideDownloadBtn').click({ force: true })
cy.get('@hideDownloadBtn').prev('input[type=checkbox]').should('be.checked')
cy.get('.checkbox-radio-switch-checkbox').contains('Hide download').as('hideDownloadBtn')
// click the label
cy.get('@hideDownloadBtn').get('span').contains('Hide download').click()
cy.get('@hideDownloadBtn').get('input[type=checkbox]').should('be.checked')

// Log out and access link share
cy.logout()
Expand Down