So far we learned how to test our code. We can write a module, class, or library, and if it has an API, we can test it. However, if we need to test a user interface, it gets a little bit complex. Frameworks such as Jasmine and Mocha can run the code we write but can't visit a page, click a button, or send a form; at least, not alone. For such testing, we need to use a headless browser. A headless browser is a web browser without a user interface. There is a way to control it programmatically and perform actions such as accessing DOM elements, clicking on links, and filling forms. We are able to do the same things as we use a real browser. This gives us a really nice instrument to test the user interface. In the next few pages, we will see how to use a headless browser.
Node.js Blueprints
By :
Node.js Blueprints
By:
Overview of this book
Table of Contents (19 chapters)
Node.js Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Common Programming Paradigms
Developing a Basic Site with Node.js and Express
Writing a Blog Application with Node.js and AngularJS
Developing a Chat with Socket.IO
Creating a To-do Application with Backbone.js
Using Node.js as a Command-line Tool
Showing a Social Feed with Ember.js
Developing Web App Workflow with Grunt and Gulp
Automate Your Testing with Node.js
Writing Flexible and Modular CSS
Writing a REST API
Developing Desktop Apps with Node.js
Index
Customer Reviews