Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RailsCod3rFuture opened this issue Feb 16, 2024 · 0 comments
Open

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

RailsCod3rFuture opened this issue Feb 16, 2024 · 0 comments

Comments

@RailsCod3rFuture
Copy link

RailsCod3rFuture commented Feb 16, 2024

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

  • Shakapacker or Sprockets version: sprockets 4.2.1
  • React-Rails version: 3.2.0
  • Rect_UJS version:
  • Rails version: 7.1.2
  • Ruby version: 3.2.2
    -Webpacker (old version): 5.4.4

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant