Is there a way to test events sent by the server in Rails 4 using Cucumber / Capybara / Poltergeist?

I have Rails 4 with ActionController :: Live, everything works fine for me, and I have text on the screen. I searched and searched many times for the capybara driver, which can handle events sent by the server. As a result, capybara will freeze when you visit the page. Has anyone worked with this before?

+4
source share
1 answer

I do not know if this is possible with the help of Poltergeist. I think it will depend on whether PhantomJS's version of WebKit is new enough to support SSE. I would try to test SSE support in PhantomJS as a first step.

+2
source

Source: https://habr.com/ru/post/1483085/


All Articles