A colleague introduced me to Nightwatch.js which is described on its website as follows:
Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.
And it seems to do what it says on the tin in a refreshingly simple way. We took Nightwatch.js for a spin on an e-commerce site and where amazed how quickly we achieved some promising initial results.
I’m sure there are other, perhaps more sophisticated, test solutions that can do all sorts of interesting things, but I think Nightwatch.js might be very useful in quickly building a safety net of automated tests for a new website being built or for an older one with insufficient test coverage.
I’m looking forward to spending more time with this tool and I’d be interested in hearing about others’ experiences with it.
Just so that I said it explicitly: I haven’t yet used Nightwatch.js in anger or for a longer period of time, so please read the above in this context.