aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/e2e')
-rw-r--r--cypress/e2e/files/FilesUtils.ts2
-rw-r--r--cypress/e2e/files/files-download.cy.ts6
-rw-r--r--cypress/e2e/files_sharing/files-shares-view.cy.ts4
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