Skip to content

Commit e8d8dec

Browse files
authored
Merge pull request #9603 from asirvadAbrahamVarghese/enhance-accordion-command
Replaced jQuery trigger-click with cy.click() in accordion command
2 parents d14181d + 428a6ad commit e8d8dec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cypress/support/commands/explorer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ Cypress.Commands.add('accordion', (title) => {
1010
ret.then((el) => {
1111
// Do not collapse if already expanded
1212
if (el.is('.collapsed')) {
13-
el.trigger('click');
13+
cy.wrap(el).click();
1414
}
15-
return el;
1615
});
1716

1817
return ret.parents('.panel');

0 commit comments

Comments
 (0)