Comments (9)
Hi @laurence-myers , if it is undefined
what output Node
information you want to get from the .react()
?
Can you suggest any sample output structure?
from cypress-react-selector.
Sorry, I'm just learning Cypress, so I'm not really sure how the API should work. 🙁 Maybe I'm using it incorrectly. I was hoping calling .react('ErrorMessage').should('not.be.visible')
would check for existence of the node, but maybe I should be asserting .should('not.exist')
or similar? I'll double check if that works.
from cypress-react-selector.
Thanks @laurence-myers . Let us know if that works.
from cypress-react-selector.
Hi @laurence-myers , any update you like to share?
from cypress-react-selector.
closing due to staleness.
from cypress-react-selector.
.should('not.exist')
doesn't work either. I'm trying to assert that there are 0 AccountCards on the page.
cy.react("AccountCard").should('not.exist')
throws
Timed out retrying: Expected to find element:
undefined
, but never found it.
I also tried cy.react("AccountCard").should("eq", undefined);
, but that returns the same error.
from cypress-react-selector.
After updating to v2.2.1, cy.react("AccountCard").should("not.exist")
now throws:
@abhinaba-ghosh Any ideas for a workaround?
from cypress-react-selector.
so, the expectation is AccountCard
should not exist right? I think it's not handled correctly now. Can you raise a ticket explaining the whole scenario?
from cypress-react-selector.
That's correct. I'll get some more info for you and open a new ticket.
from cypress-react-selector.
Related Issues (20)
- Cannot read properties of undefined (reading 'waitToLoadReact') HOT 2
- Would this work with 3rd party libraries? Such as Material UI? HOT 2
- getting webpack-dev-server warning on resqInjector.js attaching the error. HOT 1
- Selectors are failing when upgrading to React 18 HOT 12
- Update plugin to be compatible with Cypress 10 HOT 4
- Could not find instance of React in given element HOT 6
- Functions react() and getReact() don't retry upcoming assertions
- Functions react() and getReact() - infinite retrying for failed upcoming assertions HOT 1
- Is it possible to get a component from a portal?
- No "sourceType" field on TSConfig compiler options HOT 1
- Using getCurrentState
- Cypress 12 Compatibility
- Can't find component by props with value of type array of objects. HOT 1
- Not able to access the sample tests (e2e tests) HOT 1
- incompatibility with Reactjs version 18
- Selector is reporting too many/duplicate items
- How to call the function inside of a component? HOT 1
- Option to suppress cy.log in getProps and getCurrentState
- warning message with resq
- Error when using Vite preprocessor due to require.resolve
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-react-selector.