News for hackers. Stuff that matters.
Re:Running feature specs with Capybara and Chrome headless by jayflux on Wednesday July 05, 2017 @08:29AM (#14701842)
Poltergeist had a network_traffic mode which we found quite useful. (Seeing if requests were made etc)

Does Chrome headless have an equivalent? It's the only thing preventing us from moving across. And if not where should I raise it?

Re:Running feature specs with Capybara and Chrome headless by rberdeen on Wednesday July 05, 2017 @10:39AM (#14702724)
Headless Chrome is controlled using the Chrome DevTools protocol, which has quite a few options for tracking and modifying network requests.

Everything you get in the Network inspector in Chrome DevTools should be available in Headless Chrome.

https://chromedevtools.github.io/devtools-protocol/tot/Netwo...

Re:Running feature specs with Capybara and Chrome headless by mickeyben on Wednesday July 05, 2017 @09:01AM (#14702023)
Not that I know of, but AFAIK you can use a proxy.

Even with Poltergeist I used to debug a slow test suite with it's `--proxy-server` option.

You can fire up mitmproxy and see the requests flowing in real time. You can even modify them or replay them.