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 3601e71 commit a60804cCopy full SHA for a60804c
cypress/support/commands/explorer.js
@@ -75,8 +75,13 @@ Cypress.Commands.add('selectAccordionItem', (accordionPath) => {
75
const currentLiElement = Cypress.$(listItems[i]);
76
// If it's the last label in the path, then that is the desired item to click
77
if (isClickableNode) {
78
- // Click the node corresponding to the last label in the given path and terminate
79
- cy.wrap(currentLiElement).click();
+ // Click the node corresponding to the last label in the given path,
+ // intercept & wait for the Tree-Select api and then terminate
80
+ cy.interceptApi({
81
+ alias: 'treeSelectApi',
82
+ urlPattern: /\/[^\/]+\/tree_select\?id=.*&text=.*/,
83
+ triggerFn: () => cy.wrap(currentLiElement).click(),
84
+ });
85
return;
86
}
87
0 commit comments