Aller au contenu
angular challenges logo Angular Challenges

🟢 Harness

Challenge #23

Ce contenu n’est pas encore disponible dans votre langue.

Créé par Thomas Laforge

Information

A component harness is a class that lets a test interact with a component via a supported API.

The objective of this challenge is to have a better understanding of the CDK test harness API. In this initial challenge, we will only use Angular Material’s built-in harnesses.

Documentation for CDK Component Harness is here. Documentation for Angular Material component is here.

Statement

Test the functionality of child.component.ts, which consists of some inputs & checkboxes related to a mat-slider. Implement the prepared test suite, but feel free to include additional tests as well.

Note: You are welcome to use Angular Testing Library if you wish.

Contributeurs

Merci à tous les contributeurs qui ont aidé à améliorer cette documentation !

  • tomalaforge
  • tomer953
  • svenson95
  • jdegand
  • LMFinney