Angular 6 for Enterprise:Ready Web Applications
上QQ阅读APP看书,第一时间看更新

e2e spec

After executing the e2e tests, you should see an error message similar to the one here:

**************************************************
* Failures *
**************************************************

1) web-app App should display welcome message
- Expected 'LocalCast Weather' to equal 'Welcome to app!'.

Executed 1 of 1 spec (1 FAILED) in 1 sec.

This error is similar to the unit test you fixed earlier:

  1. Update the spec to expect the correct header as follows:
e2e/app.e2e-spec.ts
expect(page.getParagraphText()).toEqual('LocalCast Weather')
  1. Rerun the tests and they should be passing now:
Jasmine started

web-app App
√ should display welcome message

Executed 1 of 1 spec SUCCESS in 1 sec.
  1. Commit your code changes.