mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
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:
parent
b2f8cb2e58
commit
70522c2d3d
2 changed files with 5 additions and 27 deletions
|
|
@ -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' })
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue