Now that we have our to-do HTTP application and understand how the Mocha testing framework works, we are ready to start creating tests using Zombie.js.
As covered before, Zombie.js allows you to create a simulated browser environment and manipulate it. These manipulations are the usual things users do with browsers, such as visiting a URL, clicking on links, filling and submitting forms, and others.
This chapter covers the following:
Visiting a URL
Filling and submitting a form
Checking for errors in the browser
Validating document content
Understanding CSS selector syntax
This chapter shows you how you can setup a Zombie.js browser that interacts with your web application.
Visiting a URL: First, we are going to pick up our application tests from where we left off. The whole app concerns users, but in this part, we're mainly going to focus on functionality that the Users
routes touch—rendering a signup form and actually creating a user record in the database...