chore(ci): Use the proper helper function to trigger action on selected rows

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-05-11 11:07:13 +02:00 committed by Peter R.
parent b2f8cb2e58
commit 70522c2d3d
2 changed files with 5 additions and 27 deletions

View file

@ -49,12 +49,7 @@ describe('files: Delete files using file actions', { testIsolation: true }, () =
// select all
selectAllFiles()
cy.get('[data-cy-files-list-selection-actions]')
.findByRole('button', { name: 'Actions' })
.click()
cy.get('[data-cy-files-list-selection-action="delete"]')
.findByRole('menuitem', { name: /^Delete files/ })
.click()
triggerSelectionAction('delete')
// see dialog for confirmation
cy.findByRole('dialog', { name: 'Confirm deletion' })

View file

@ -195,12 +195,7 @@ describe('files: Download files using selection', () => {
})
// click download
cy.get('[data-cy-files-list-selection-actions]')
.findByRole('button', { name: 'Actions' })
.click()
cy.findByRole('menuitem', { name: 'Download (selected)' })
.should('be.visible')
.click()
triggerSelectionAction('download')
// check a file is downloaded
const downloadsFolder = Cypress.config('downloadsFolder')
@ -238,11 +233,7 @@ describe('files: Download files using selection', () => {
})
// click download
cy.get('[data-cy-files-list-selection-actions]')
.findByRole('button', { name: 'Actions' })
.click()
cy.findByRole('menuitem', { name: 'Download (selected)' })
.click()
triggerSelectionAction('download')
// check a file is downloaded
const downloadsFolder = Cypress.config('downloadsFolder')
@ -283,11 +274,7 @@ describe('files: Download files using selection', () => {
})
// click download
cy.get('[data-cy-files-list-selection-actions]')
.findByRole('button', { name: 'Actions' })
.click()
cy.findByRole('menuitem', { name: 'Download (selected)' })
.click()
triggerSelectionAction('download')
// check a file is downloaded
const downloadsFolder = Cypress.config('downloadsFolder')
@ -331,11 +318,7 @@ describe('files: Download files using selection', () => {
})
// click download
cy.get('[data-cy-files-list-selection-actions]')
.findByRole('button', { name: 'Actions' })
.click()
cy.findByRole('menuitem', { name: 'Download (selected)' })
.click()
triggerSelectionAction('download')
// check a file is downloaded
const downloadsFolder = Cypress.config('downloadsFolder')