Skip to content

Commit

Permalink
update openAcordeon method
Browse files Browse the repository at this point in the history
  • Loading branch information
karlOS123testing committed Jan 8, 2024
1 parent f950719 commit 6bab7b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/e2e/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 6bab7b1

Please sign in to comment.