Giter Club home page Giter Club logo

Comments (6)

hammeiam avatar hammeiam commented on August 23, 2024 2

I'm also experiencing the same issue

from cypress-react-selector.

pegans avatar pegans commented on August 23, 2024

I have the same issue after updating to Cypress 10.7.0 and cypress-react-selector 3.0.0

from cypress-react-selector.

jezaman avatar jezaman commented on August 23, 2024

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.

thediveo avatar thediveo commented on August 23, 2024

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.

kkuriata avatar kkuriata commented on August 23, 2024

Repo seems to be dead. Issue still persists...

from cypress-react-selector.

abhinaba-ghosh avatar abhinaba-ghosh commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.