diff --git a/tests/e2e/support/commands.js b/tests/e2e/support/commands.js index d4c986b49..371ded72b 100644 --- a/tests/e2e/support/commands.js +++ b/tests/e2e/support/commands.js @@ -225,10 +225,7 @@ Cypress.Commands.add('showValidationOnLoad', () => { }) Cypress.Commands.add("openAcordeon", (name) => { - cy.get(`button[aria-controls='${name}']`).should("be.visible"); - cy.get(`div[id='${name}']`).invoke("attr", "style").should("eq", "display: none;"); - cy.get(`button[aria-controls='${name}']`).click({waitForAnimations: 500}); - cy.get(`div[id='${name}']`).invoke("attr", "style").should("not.equal", "display: none;"); + cy.get(`button[aria-controls='${name}']`).click({waitForAnimations: 500, force:true}); }); Cypress.Commands.add("openAllAcordeon", () => {