Skip to content

Instantly share code, notes, and snippets.

@just3ws
Created November 15, 2014 07:58
Show Gist options
  • Save just3ws/7971e681e24298d0e7d2 to your computer and use it in GitHub Desktop.
Save just3ws/7971e681e24298d0e7d2 to your computer and use it in GitHub Desktop.
Error running Capybara Tests. UI works fine in browser but crashes when automated using PhantomJS
{"error"=>{"name"=>"Poltergeist.JavascriptError", "args"=>[[{"message"=>"TypeError: 'undefined' is not an object (evaluating 'jqXHR.responseJSON.join')", "stack"=>"TypeError: 'undefined' is not an object (evaluating 'jqXHR.responseJSON.join')
at http://127.0.0.1:51206/assets/application.js:12369
at http://127.0.0.1:51206/assets/application.js:3120
at http://127.0.0.1:51206/assets/application.js:3232
at http://127.0.0.1:51206/assets/application.js:9278 in done
at http://127.0.0.1:51206/assets/application.js:9686"}]]}}
@just3ws
Copy link
Author

just3ws commented Nov 15, 2014

Using Poltergeist/Capybara to automate feature tests. The code already works fine in the browser but when the event is triggered in PhantomJS the above error is generated inside the PhantomJS browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment