Skip to content

Commit

Permalink
cypress: Replace click({multiple: true})
Browse files Browse the repository at this point in the history
  • Loading branch information
mamedin committed Sep 28, 2023
1 parent 477a493 commit d1c1db7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/csv_import.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit d1c1db7

Please sign in to comment.