-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
EvaluatingUnder evaluation whether a valid bugUnder evaluation whether a valid bug
Description
Sorry if I am not using your plugin correctly, I was iterating over all clickable images and checking whether they spawn a modal like they are supposed to.
When using cy.wrap cy.react is no longer able to find anything, but when I use image.trigger("click") instead of cy.wrap cy.react works again, but the click doesn't get triggered on the second iteration of the loop.
It seems like .each and .wrap have a funky interaction with .react
cy.react('FeatureImg').each(image => {
// if this line exists, the cy.reacts below can't find anything anymore
cy.wrap(image).scrollIntoView().click();
// replacing the line above the code below allows the cy.react below to work,
// but this line is not executed on any subsequent iterations of the loop ?
// image.trigger("click");
cy.react('ModalWrapper').should('exist');
cy.react('ModalButton').should('exist').trigger('click');
});Metadata
Metadata
Assignees
Labels
EvaluatingUnder evaluation whether a valid bugUnder evaluation whether a valid bug