Book Image

Node.js By Example

Book Image

Node.js By Example

Overview of this book

Table of Contents (18 chapters)
Node.js By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 11. Testing the User Interface

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