diff options
author | provokateurin <kate@provokateurin.de> | 2024-11-11 09:57:15 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-11-11 10:18:15 +0100 |
commit | 8a32f1d2b8b23ec1508f1ed5ba5ce5d8784ac70a (patch) | |
tree | 78453c8c7e97ca83e3b0a66d9dfbe08f54a48fb1 | |
parent | 4d69d1e2f4aadc23ae4fe21d41a81204ff7f8539 (diff) | |
download | nextcloud-server-test/fix-cypress.tar.gz nextcloud-server-test/fix-cypress.zip |
test: Fix cypresstest/fix-cypress
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r-- | cypress/e2e/files/FilesUtils.ts | 2 | ||||
-rw-r--r-- | cypress/e2e/files/files-download.cy.ts | 6 | ||||
-rw-r--r-- | cypress/e2e/files_sharing/files-shares-view.cy.ts | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/cypress/e2e/files/FilesUtils.ts b/cypress/e2e/files/FilesUtils.ts index f435272b9a2..76f3a917bdb 100644 --- a/cypress/e2e/files/FilesUtils.ts +++ b/cypress/e2e/files/FilesUtils.ts @@ -138,7 +138,7 @@ export const renameFile = (fileName: string, newFileName: string) => { export const navigateToFolder = (dirPath: string) => { const directories = dirPath.split('/') directories.forEach((directory) => { - getRowForFile(directory).should('be.visible').find('[data-cy-files-list-row-name-link]').click() + getRowForFile(directory).should('be.visible').find('[data-cy-files-list-row-name-link]').click({ force: true }) }) } diff --git a/cypress/e2e/files/files-download.cy.ts b/cypress/e2e/files/files-download.cy.ts index 5522fb947d6..a85bbaa8737 100644 --- a/cypress/e2e/files/files-download.cy.ts +++ b/cypress/e2e/files/files-download.cy.ts @@ -91,7 +91,7 @@ describe('files: Download files using default action', { testIsolation: true }, getRowForFile('file.txt') .should('be.visible') .findByRole('button', { name: 'Download' }) - .click() + .click({ force: true }) const downloadsFolder = Cypress.config('downloadsFolder') cy.readFile(`${downloadsFolder}/file.txt`, { timeout: 15000 }) @@ -111,7 +111,7 @@ describe('files: Download files using default action', { testIsolation: true }, getRowForFile('#file.txt') .should('be.visible') .findByRole('button', { name: 'Download' }) - .click() + .click({ force: true }) const downloadsFolder = Cypress.config('downloadsFolder') cy.readFile(`${downloadsFolder}/#file.txt`, { timeout: 15000 }) @@ -134,7 +134,7 @@ describe('files: Download files using default action', { testIsolation: true }, getRowForFile('file.txt') .should('be.visible') .findByRole('button', { name: 'Download' }) - .click() + .click({ force: true }) const downloadsFolder = Cypress.config('downloadsFolder') cy.readFile(`${downloadsFolder}/file.txt`, { timeout: 15000 }) diff --git a/cypress/e2e/files_sharing/files-shares-view.cy.ts b/cypress/e2e/files_sharing/files-shares-view.cy.ts index 12a67d9ee0f..7879d1df3c7 100644 --- a/cypress/e2e/files_sharing/files-shares-view.cy.ts +++ b/cypress/e2e/files_sharing/files-shares-view.cy.ts @@ -35,7 +35,7 @@ describe('files_sharing: Files view', { testIsolation: true }, () => { // see the shared folder getRowForFile('folder').should('be.visible') // click on the folder should open it in files - getRowForFile('folder').findByRole('button', { name: /open in files/i }).click() + getRowForFile('folder').findByRole('button', { name: /open in files/i }).click({ force: true }) // See the URL has changed cy.url().should('match', /apps\/files\/files\/.+dir=\/folder/) // Content of the shared folder @@ -50,7 +50,7 @@ describe('files_sharing: Files view', { testIsolation: true }, () => { // see the shared folder getRowForFile('folder').should('be.visible') // click on the folder should open it in files - getRowForFile('folder').findByRole('button', { name: /open in files/i }).click() + getRowForFile('folder').findByRole('button', { name: /open in files/i }).click({ force: true }) // See the URL has changed cy.url().should('match', /apps\/files\/files\/.+dir=\/folder/) // Content of the shared folder |