From 34a05fde12dca05b09662bc49491254ae6073e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 21 Aug 2024 15:40:34 +0200 Subject: [PATCH] ci: Fix file list selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/integration.spec.js | 2 +- cypress/support/commands.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/integration.spec.js b/cypress/e2e/integration.spec.js index f720ebe681..b02806b954 100644 --- a/cypress/e2e/integration.spec.js +++ b/cypress/e2e/integration.spec.js @@ -87,7 +87,7 @@ describe('Nextcloud integration', function() { cy.get('.oc-dialog').should('be.visible') cy.get('.oc-dialog input[type=text]') .should('be.visible') - .should('have.value', `/${exportFilename}`) + .should('have.value', exportFilename) cy.get('.oc-dialog button.primary').click() diff --git a/cypress/support/commands.js b/cypress/support/commands.js index d2476de77c..25f6248141 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -180,7 +180,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] tr[data-cy-files-list-row-name="${fileName}"] [data-cy-files-list-row-name-link]`).click() }) Cypress.Commands.add('nextcloudEnableApp', (appId) => {