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.