Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix cypress #49197

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress/e2e/files/FilesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})

}
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/files/files-download.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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 })
Expand All @@ -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 })
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/files_sharing/files-shares-view.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading