Skip to content

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

Open
@RailsCod3rFuture

Description

@RailsCod3rFuture

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions