Skip to content

Commit

Permalink
test(cypress): Fix download URL for public shares
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 13, 2024
1 parent 048abc9 commit c233885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/sharing/download-share.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ describe(`Download ${fileName} from viewer in link share`, function() {

it('See the full screen and download icons in the menu', function() {
cy.get('body > .v-popper__popper ul span.fullscreen-icon').should('be.visible')
cy.get(`body > .v-popper__popper ul a.action-link[href*='/s/${token}/download']`).should('be.visible')
cy.get(`body > .v-popper__popper ul a.action-link[href*='/public.php/dav/files/${token}/image1.jpg']`).should('be.visible')
})

it('Download the image', function() {
// https://github.com/cypress-io/cypress/issues/14857
cy.window().then((win) => { setTimeout(() => { win.location.reload() }, 5000) })
// download the file
cy.get(`body > .v-popper__popper a.action-link[href*='/s/${token}/download']`).click()
cy.get(`body > .v-popper__popper ul a.action-link[href*='/public.php/dav/files/${token}/image1.jpg']`).click()
})

it('Compare downloaded file with asset by size', function() {
Expand Down

0 comments on commit c233885

Please sign in to comment.