Skip to content

Commit

Permalink
WIP fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShGKme committed Nov 18, 2023
1 parent c2b571c commit c984129
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/sharing/download-share-disabled.cy.ts
Expand Up @@ -54,16 +54,16 @@ describe(`Download ${fileName} in viewer`, function() {
.should('contain', 'image2 .jpg')
})

it('Share the Photos folder with a share link and access the share link', function() {
it.only('Share the Photos folder with a share link and access the share link', function() {
cy.createLinkShare('/Photos').then(token => {
// Open the sidebar
cy.visit('/apps/files')
cy.getFile('Photos').clickAction('details')
cy.get('aside.app-sidebar').should('be.visible')
cy.get('[data-id="sharing"] label').click()
cy.get('[role="tablist"]').contains('[role="tab"]', 'Sharing').click()

// Open the share menu
cy.get(`.sharing-link-list > .sharing-entry > .action-item[href*='/s/${token}'] + .sharing-entry__actions .action-item__menutoggle`).click()
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('@hideDownloadBtn').prev('input[type=checkbox]').should('be.checked')
Expand Down

0 comments on commit c984129

Please sign in to comment.