Search⌘ K
AI Features

Challenge: Component Testing

Explore how to implement component-level testing for user login features in Angular. Learn to write tests that detect incorrect password errors, use spies and observables, and verify error messages with Cypress to ensure robust login functionality.

Problem statement

In our E2E tests, we added one additional test for displaying a message when a user enters an incorrect password. See if you can create the component level test for this behavior.

Playground

Below is the updated code. Use this to write the tests. ...