Test jQuery UI

In the previous chapters we created different versions of UI for the TO-DO application. One version directly manipulated the DOM and another used jQuery. The HTML files for these two versions were almost the same, except for the JavaScript files they included. Let’s focus on the jQuery version and write integration tests by interacting with the tasksj.html file.

Set Up the Protractor Configuration File

Protractor needs a configuration file, so let’s get that file ready. Edit the pre-created empty file protractor.conf.js in the current workspace and enter the following code:

​ ​var​ app = require(​'./app'​);
​ ​var​ config = require(​'./config.json'​);
​ 
​ exports.config ...

Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.