From eb4c0125a0f86d5d1a836fce53b856df373c7eba Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Mon, 19 Aug 2024 11:12:35 -0400 Subject: [PATCH] fix(tests): fix `openFile` cypress command Signed-off-by: Elizabeth Danzberger --- cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index eec4a5ea45..2f456c345e 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -142,7 +142,7 @@ Cypress.Commands.add('shareLink', (user, path, shareData = {}) => { }) Cypress.Commands.add('openFile', fileName => { - cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"] a[data-cy-files-list-row-name-link]`).click() + cy.get(`[data-cy-files-list-tbody] tr[data-cy-files-list-row-name="${fileName}"] button[data-cy-files-list-row-name-link]`).click() }) Cypress.Commands.add('nextcloudEnableApp', (appId) => {