mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
docs(testing-harness): update content
This commit is contained in:
@@ -8,13 +8,17 @@ sidebar:
|
|||||||
order: 9
|
order: 9
|
||||||
---
|
---
|
||||||
|
|
||||||
## Statement:
|
## 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.
|
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.
|
||||||
|
|
||||||
The goal is to test the functionality of `child.component.ts`. I have prepared a test suite that you need to implement, but feel free to include additional tests as well.
|
|
||||||
|
|
||||||
**Note:** You are welcome to use Testing Library if you wish.
|
|
||||||
|
|
||||||
Documentation for CDK Component Harness is [here](https://material.angular.io/cdk/test-harnesses/overview#api-for-test-authors).
|
Documentation for CDK Component Harness is [here](https://material.angular.io/cdk/test-harnesses/overview#api-for-test-authors).
|
||||||
Documentation for Angular Material component is [here](https://material.angular.io/components/button/overview).
|
Documentation for Angular Material component is [here](https://material.angular.io/components/button/overview).
|
||||||
|
|
||||||
|
## Statement
|
||||||
|
|
||||||
|
The goal is to test the functionality of `child.component.ts`, which consists of some inputs & checkboxes related to a `mat-slider`. I have prepared a test suite that you need to implement, but feel free to include additional tests as well.
|
||||||
|
|
||||||
|
**Note:** You are welcome to use Testing Library if you wish.
|
||||||
|
|||||||
Reference in New Issue
Block a user