Test Angular 2 UI
Now that you know how to test AngularJS 1.x UI, letâs explore how to use Protractor to test the integration of the Angular UI that we developed in Chapter 9, âTest-Drive Angular 2â.
Angular 2 is in beta at the time of this writing. Angular-specific capabilities of Protractor, like accessing elements with the attribute ngFor, are still in development. But, that shouldnât stop us from using Protractor to test Angular UI.
Change to the tdjsa/testangular2/todo directory in your workspaceâthis is the directory where you created the Angular UI for the TO-DO application. We will write integration tests using Protractor in this workspace.
The app.js and config.json files in this project are the same as the ones we used in ...
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.