Skip to content

Commit 8f152fb

Browse files
authored
Merge pull request #2416 from nextcloud/fix/cypress
ci: Run cypress tests properly again on CI
2 parents bd99947 + c233885 commit 8f152fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cypress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128128
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
129129
SPLIT: ${{ matrix.total-containers }}
130-
SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}```
130+
SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}
131131

132132
- name: Upload snapshots
133133
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4

cypress/e2e/sharing/download-share.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ describe(`Download ${fileName} from viewer in link share`, function() {
8989

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

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

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

0 commit comments

Comments
 (0)