Comments (6)
I'm also experiencing the same issue
from cypress-react-selector.
I have the same issue after updating to Cypress 10.7.0
and cypress-react-selector 3.0.0
from cypress-react-selector.
Same Issue with React 18.
Is there any bug fix?
Is someone still maintaining this repository?
Seems like it was already reported months ago.
from cypress-react-selector.
waitForReact
now works for me; this needed the following changes; however, react(...)
then fails for me.
package.json
-- make sure to force the just released new version of resq
that works with React 18.
{
"resolutions": {
"resq": "^1.11.0"
},
}
In component-index.html
add an id=
attribute the data-cy-root
div
element:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Components App</title>
</head>
<body>
<div id="__cy_root" data-cy-root></div>
</body>
</html>
In cypress.config.ts
tell cypress-react-selector
the id of this root element:
import { defineConfig } from "cypress"
export default defineConfig({
component: {
devServer: {
framework: "create-react-app",
bundler: "webpack",
},
},
env: {
'cypress-react-selector': {
root: '#__cy_root',
},
},
})
from cypress-react-selector.
Repo seems to be dead. Issue still persists...
from cypress-react-selector.
this repo is not dead btw. We dont have an active usecase with react 18 at this moment. We will evaluate it soon. Looking for active contributors/maintainers
from cypress-react-selector.
Related Issues (20)
- when i'm executing the test cases it getting error in test runner "Webpack Compilation Error". Could you please provide valuable suggestions. HOT 1
- waitForReact throws an error when using Webpack HOT 4
- 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
- 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
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.