Skip to content

Commit a4e9644

Browse files
committed
test: fix cypress files trashbin tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent da6736b commit a4e9644

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cypress/e2e/files_trashbin/files.cy.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ describe('files_trashbin: download files', { testIsolation: true }, () => {
6464
cy.get('[data-cy-files-list-row-checkbox]').should('have.length', 2)
6565
selectAllFiles()
6666
cy.get('.files-list__selected').should('have.text', '2 selected')
67-
cy.get('[data-cy-files-list-selection-action="restore"]').should('be.visible')
68-
cy.get('[data-cy-files-list-selection-action="download"]').should('not.exist')
67+
cy.get('.files-list__row-actions-batch')
68+
.should('be.visible')
69+
.within(() => {
70+
cy.findByRole('button', { name: /restore/i }).should('be.visible')
71+
cy.findByRole('button', { name: /download/i }).should('not.exist')
72+
})
6973
})
7074
})

0 commit comments

Comments
 (0)