In Chapter 10, Adding Real-time Chat, we extended our social network by adding a real-time chat function. We used WebSockets and Socket.IO in particular to implement the communication between the users in our system. The last chapter of this book is dedicated to user interface testing. We will explore two popular tools to run headless browser testing. This chapter covers the following topics:
Introducing the basic testing toolset
Preparing our project to run tests
Running our tests with PhantomJS
Testing the user's registration
Testing with DalekJS