Skip to content

Commit

Permalink
Merge pull request #1510 from ProcessMaker/fix_openAcodeonMethod
Browse files Browse the repository at this point in the history
update_openAcordeon_method
  • Loading branch information
nolanpro authored Jan 9, 2024
2 parents f950719 + 6bab7b1 commit 1e10dd4
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 1e10dd4

Please sign in to comment.