You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.wrapcy.react is no longer able to find anything, but when I use image.trigger("click") instead of cy.wrapcy.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 anymorecy.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');});
The text was updated successfully, but these errors were encountered:
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 useimage.trigger("click")
instead ofcy.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
Full Repro
The text was updated successfully, but these errors were encountered: