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
{{ message }}
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.
it('finds components by props and state',()=>{// by clicking on the Order button we change the// internal state of that componentcy.contains('.product','First item').find('button.order').click().wait(1000)// the component is there for sure, since the DOM has updatedcy.contains('.product','1').find('.name').should('have.text','First item')// now find that component using the state value// DOES NOT WORK FOR SOME REASONcy.react('AProduct',null,{orderCount: 1}).should('not.be.empty').find('.name').should('have.text','First item')})
The DOM is there, but the cy.react does not find the component
The text was updated successfully, but these errors were encountered:
Test cypress/component/advanced/react-book-example/src/components/ProductsList.spec.js
Using https://github.com/abhinaba-ghosh/cypress-react-selector
The DOM is there, but the
cy.react
does not find the componentThe text was updated successfully, but these errors were encountered: