We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf47dcc commit 85592c2Copy full SHA for 85592c2
cypress/support/commands/explorer.js
@@ -10,11 +10,13 @@ Cypress.Commands.add('accordion', (title) => {
10
ret.then((el) => {
11
// Do not collapse if already expanded
12
if (el.is('.collapsed')) {
13
- cy.wrap(el).click();
+ cy.interceptApi({
14
+ alias: 'accordionSelectApi',
15
+ urlPattern: /\/[^\/]+\/accordion_select\?id=.*/,
16
+ triggerFn: () => cy.wrap(el).click(),
17
+ });
18
}
19
});
-
- return ret.parents('.panel');
20
21
22
// name: String of the record in the accordion panel to click.
0 commit comments