From d1c1db7bd0ca9a62a3a189c98086268169348d57 Mon Sep 17 00:00:00 2001 From: Miguel Angel Medinilla Luque Date: Thu, 28 Sep 2023 09:44:38 +0200 Subject: [PATCH] cypress: Replace click({multiple: true}) --- cypress/e2e/csv_import.cy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/csv_import.cy.js b/cypress/e2e/csv_import.cy.js index 294cd180d6..a958a7751b 100644 --- a/cypress/e2e/csv_import.cy.js +++ b/cypress/e2e/csv_import.cy.js @@ -20,8 +20,9 @@ describe('CSV import', () => { cy.contains('CSV import order fonds').click() cy.waitUntil(() => Cypress.$('li.jstree-node').length === 4) - cy.get('li.jstree-closed > i').as('btn').click() - cy.get('@btn').click({ multiple: true }) + cy.get('li.jstree-closed > i') + .should('be.visible') // Ensure the element is visible + .click({ multiple: true }); cy.waitUntil(() => Cypress.$('li.jstree-node').length === 34) const orderedTitles = [