I've been using capybara to test a small web app that uses EventSource. I ran into some issues with headless testing.
visit 'http://localhost:9292'- selenium/firefox works just fine
- poltergeist results in a Capybara::Poltergeist::TimeoutError
- capybara-webkit hangs
phantomjs a.jshangsphantomjs b.jsworksphantomjs c.jsworksphantomjs d.jsshows network timeout on EventSource stream URL (and results in a PhantomJS crash -- why ?!)phantomjs e.jshangs, which suggest that the problem is that onLoadFinished is (obviously ?!) never called because the stream never finishes loading
visit 'about:blank'
page.execute_script 'document.location = "http://localhost:9292"'
find '.some-class', text: 'page has been loaded'- selenium/firefox works just fine
- poltergeist works just fine
- capybara-webkit still hangs
I think I run into the same issue (blocking Capybara) with chromedriver right now.
Did you have any solution for these cases?