reactjs / react-rails

Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Apache License 2.0
6.75k stars 759 forks source link

Issues with Loading React Component for Cuprite in Rails 7.1 #1332

Open RailsCod3rFuture opened 9 months ago

RailsCod3rFuture commented 9 months ago

Steps to reproduce

  1. Create a rails 7.1 application with ruby 3.2.2
  2. Setup Rspec/Capybara/Cuprite Defaults
  3. add capybara-screenshot
  4. Install latest version of react-rails gem and create a component in a view
  5. Test that the component renders an h1 tag with the help of capybara

Expected behavior

The component renders and is accessible to cuprite/capybara finders

Actual behavior

The html for cuprite shows that the component is on the page, but when you look at the photo from capybara screen shot. No component has rendered

System configuration


(Describe your issue here) Cuprite is struggling with rendering the react component for react-rails with rails 7.1 and ruby 3.2.2. I've done an assets precompile for the test env and no issues came up.

Judahmeek commented 3 months ago

Sounds like a Cuprite issue, possibly. Either way, you'll need a public example repository to pursue this further.