diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2025-01-08 21:33:09 +0100 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2025-01-08 21:33:09 +0100 |
commit | 157d26f7b41109081bc256e5e655083383907e1b (patch) | |
tree | 657c069829c96e109b34c5e9cccae83e1e1da68b /cypress/e2e | |
parent | ce1c0eb4930d634bbbb390037e3869ea66b52709 (diff) | |
download | nextcloud-server-157d26f7b41109081bc256e5e655083383907e1b.tar.gz nextcloud-server-157d26f7b41109081bc256e5e655083383907e1b.zip |
test(cypress): make select range of files with shift key more reliable
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'cypress/e2e')
-rw-r--r-- | cypress/e2e/files/files-selection.cy.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cypress/e2e/files/files-selection.cy.ts b/cypress/e2e/files/files-selection.cy.ts index 04991b74fb8..d21d5cfd17c 100644 --- a/cypress/e2e/files/files-selection.cy.ts +++ b/cypress/e2e/files/files-selection.cy.ts @@ -66,9 +66,9 @@ describe('files: Select all files', { testIsolation: true }, () => { it('Can select range of files with shift key', () => { cy.get('[data-cy-files-list-row-checkbox]').should('have.length', filesCount) selectRowForFile('audio.mp3') - cy.window().trigger('keydown', { shiftKey: true }) - selectRowForFile('readme.md', { shiftKey: true }) - cy.window().trigger('keyup', { shiftKey: false }) + cy.window().trigger('keydown', { key: 'ShiftLeft', shiftKey: true }) + selectRowForFile('readme.md') + cy.window().trigger('keyup', { key: 'ShiftLeft', shiftKey: true }) cy.get('.files-list__selected').should('have.text', '4 selected') cy.get('[data-cy-files-list-row-checkbox] input[type="checkbox"]:checked').should('have.length', 4) |