From 6bab7b160a2ccc7fa8c3eba71b291e75849d36e0 Mon Sep 17 00:00:00 2001 From: Carlos Camacho Date: Mon, 8 Jan 2024 19:33:32 -0400 Subject: [PATCH] update openAcordeon method --- tests/e2e/support/commands.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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", () => {