Closed jovergaag closed 7 years ago
This is not a Poltergeist issue, it is correctly reporting the JS error that PhantomJS is returning. it is either an issue with your asset pipeline or it is an issue with PhantomJS.
Make sure your assets are getting rebuilt in the test environment so that RWR is actually defined in one of the JS files being loaded. If it is then the most likely reason is you have code utilizing ES2015+ features that is not being transpiled to ES5 (PhantomJS 2.1.1 only supports ES5 max)
I have recently installed rwr-redux in my project and the Rails feature specs now fail with the following error:
The pages definitely load without Javascript errors. If I use Selenium driver there is no longer an issue which makes me think this is something with Poltergeist. Any ideas what is going on here? Below are my package.json and Gemfile.lock.
Thank you
Gemfile.lock:
Package.json