cuprite
cuprite copied to clipboard
Non-HTML response not being handled properly
Hi!
I've been running into an issue where a button, a link or a form in my Rails application makes an Ajax request to the server and expects a JS response (a form remote: true
). The problem is that when the response reaches the browser, the JS code is not being executed, it's being displayed on the screen as if it was HTML.
I was expecting rails-ujs to handle the response, but apparently cuprite is intercepting it and rendering on the page. This test passes with capybara-webkit.
Here's a sample app: https://github.com/mateusg/cuprite_bug_sample
Great work with this gem! 👏 👏 👏 I'm getting rid of capybara-webkit and I liked it.
Hi, @mateusg! Unfortunutially repo https://github.com/mateusg/cuprite_bug_sample, not exist:
can you please submit a bug-reproduce report or restore the repo?
@mateusg did you find a solution for this? I've suddenly hit the same issue...