Writing an E2E test using Protractor
- Test bound Directives we've created
Using the files we have provided in this repo, edit
spec/Index.spec.js to test our application.
We should test that we can click on the "Add" button, and that it adds a new contact to the list.
Inside of the
'should add a new contact' test, setup the following expectations.
- Total count of contacts should be
- The name of the second contact should be 'Tim'.
- The phone number of the second contact should be '3934203242'.