From 9ae297b8a9c874d627a1b034e757e3136647f4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 14 Aug 2023 09:55:51 +0200 Subject: [PATCH] ci(cypress): Fix selectors for new file picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/e2e/cardFeatures.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/cardFeatures.js b/cypress/e2e/cardFeatures.js index e6a9f1b43..c47c78e46 100644 --- a/cypress/e2e/cardFeatures.js +++ b/cypress/e2e/cardFeatures.js @@ -110,9 +110,10 @@ describe('Card', function() { cy.get('button.icon-upload').should('be.visible') cy.get('button.icon-folder').should('be.visible') .click() - cy.get('.oc-dialog #picker-filestable tr[data-entryname="welcome.txt"] td.filename').should('be.visible') + cy.get('.file-picker__main').should('be.visible') + cy.get('.file-picker__main .file-picker__file-name[title="welcome"]').should('be.visible') .click() - cy.get('.oc-dialog button.primary').click() + cy.get('.dialog__actions button.button-vue--vue-primary').click() cy.get('.attachment-list .basename').contains('welcome.txt') })