O'Reilly logo

Angular Test-Driven Development - Second Edition by Md. Ziaul Haq

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating Protractor with Angular

So far, we have seen how to install and configure Protractor and we also have a basic overview of how Protractor works. In this section, we will go through with the process of integrating Protractor in an existing Angular project, where we just have unit testing and will see how Protractor is used in e2e testing in real life.

Getting the existing project

The code in this test will leverage the unit tested code from Chapter 3, The Karma Way. We will copy the code to a new directory called angular-protractor.

As a reminder, the application is a to-do application that has some items in the to-do list; let's add some more items to the list. It has a single component class, AppComponent, that has a list of items and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required