Setting up End-to-End testing (for Nyssetutka.fi) using Nightwatch.js, Selenium and ChromeDriver and running the tests in a headless Chrome instance was super easy.
Since I didn’t find any information whether this could actually work already (is the headless flag still buggy or something, has ChromeDriver added support etc.), here are my findings. All I had to configure was to add a CLI arg for Chrome to my Nightwatch configuration. Useful parts below.
ChromeDriver 2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57)
Google Chrome 59.0.3071.115
I’m running Ubuntu 17.04.