cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

Non-HTML response not being handled properly

Open mateusg opened this issue 5 years ago • 2 comments

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.

mateusg avatar Aug 24 '19 02:08 mateusg

Hi, @mateusg! Unfortunutially repo https://github.com/mateusg/cuprite_bug_sample, not exist: Selection_755 can you please submit a bug-reproduce report or restore the repo?

Mifrill avatar Aug 29 '21 13:08 Mifrill

@mateusg did you find a solution for this? I've suddenly hit the same issue...

Matt-Yorkley avatar Jan 08 '22 11:01 Matt-Yorkley