percy / percy-capybara

Visual testing for Capybara with Percy.
https://docs.percy.io/docs/capybara
MIT License
45 stars 23 forks source link

percy-capybara 5.0.0 doesn't seem to work with cucumber #175

Closed erikaxel closed 3 years ago

erikaxel commented 3 years ago

The problem

We are using percy-capybara with Cucumber instead of Rspec and it seems not to work with the new version, we get the following error after updating according to the readme:

undefined method `snapshot' for #<Capybara::Session> (NoMethodError)

It used to work with older versions.

Environment

Details

We tried to use percy-selenium but that didnt work due to versioning issues, it requires a too high version of selenium to work. It might be that relaxing that and using that would be the right solution forward, but we think it would be nice if percy-capybara supports cucumber out of the box.

Create any simple test with cucumber to recreate the issue.