Skip to content

Commit 428a6ad

Browse files
Replaced jQuery trigger-click with cy.click() in accordion command
1 parent 2729d56 commit 428a6ad

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)