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]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
Pytal authored and nextcloud-command committed Feb 9, 2024
1 parent aeaeb49 commit 9dc9295
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 119 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
4 changes: 2 additions & 2 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Cypress.Commands.add(
'clickAction',
{ prevSubject: 'element' },
(subject, action) => {
subject.find('[data-cy-files-list-row-actions] button').click()
cy.get(`[data-cy-files-list-row-action="${action}"]`).click()
subject.find('[data-cy-files-list-row-actions] [aria-label="Actions"]').click()
cy.get(`[data-cy-files-list-row-action="${action}"] [role="menuitem"]`).click()
},
)

Expand Down
230 changes: 115 additions & 115 deletions js/viewer-main.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.mjs.map

Large diffs are not rendered by default.

0 comments on commit 9dc9295

Please sign in to comment.