Find out how to write integration tests for your Angular 2 application without using page objects.
- [Instructor] Let's add an integration test…to our application to confirm…that the default user list loads as expected.…We start by going to the terminal…and navigating to the root of our project.…From here, we'll launch our development server…by typing ng serve.…Back in our code editor, we'll navigate…to the app.e2e-spec file in the e2e folder…where some boilerplate tests are already written.…Let's delete the current describe block…and make a new one.…
I'll call this block User List App,…but you can call yours whatever you'd like.…Our describe block will take a callback…which will have a simple failing test…to make sure everything works as expected:…it('should fail').…And to the callback,…we expect(2).toEqual(4).…We'll create a new terminal window…and navigate to our project folder.…
I'll clear the screen.…We type ng e2e which launches the Protractor framework.…Everything fails as expected…which means we're ready to write our tests.…We can take advantage of Protractor's built-in functions…to allow us to interact with both the browser…
- Analyzing Angular 2 error messages
- Identifying the causes of common error messages
- Preventing common errors with custom error handling
- Analyzing testing reports
- Reviewing common testing report errors and their likely causes
Skill Level Intermediate
Angular 2 Essential Trainingwith Justin Schwartzenberger2h 48m Intermediate
Angular 2: Widget-Based Architectureswith Derek Peruo52m 18s Intermediate
1. Getting Started
Application overview1m 49s
2. How Angular 2 Reports Errors
Error handling in Angular1m 21s
3. Common Angular 2 Errors
4. Testing Angular 2 Applications
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.