Skip to content

Commit

Permalink
chore(cypress): Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Feb 8, 2024
1 parent a332a65 commit 65a2b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/sharing/download-share-disabled.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe(`Download ${fileName} in viewer`, function() {
// Open the share menu
cy.get('.sharing-link-list > .sharing-entry [aria-label*=\'Actions for "Share link"\']').click()
cy.get('.action-button:contains(\'Customize link\')').click()
cy.get('label:contains(\'Hide download\')').as('hideDownloadBtn').click()
cy.get('span:contains(\'Hide download\')').as('hideDownloadBtn').click({ force: true })
cy.get('@hideDownloadBtn').prev('input[type=checkbox]').should('be.checked')

// Log out and access link share
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Cypress.Commands.add(
{ prevSubject: 'element' },
(subject, action) => {
subject.find('[data-cy-files-list-row-actions] button').click()
cy.get(`[data-cy-files-list-row-action="${action}"]`).click()
cy.get(`[data-cy-files-list-row-action="${action}"] [role="menuitem"]`).click()
},
)

Expand Down

0 comments on commit 65a2b3f

Please sign in to comment.