From e035ea5770bba598800ec9e0294aa321a85a6940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 21 Aug 2023 11:50:36 +0200 Subject: [PATCH] ci(cypress): Fix selectors for files to vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- 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 f971036bcc..97f59a7906 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(`.files-filestable:visible tr[data-file="${fileName}"] a.name`).click() + cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"] a[data-cy-files-list-row-name-link]`).click() }) Cypress.Commands.add('nextcloudEnableApp', (appId) => {