Skip to content
angular challenges logo Angular Challenges

๐ŸŸข Harness

Challenge #23

Created by 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 Testing Library if you wish.

Contributors

Thanks to all the contributors who have helped make this documentation better!

  • tomalaforge
  • tomer953
  • svenson95
  • jdegand