tomastrajan / angular-ngrx-material-starter

Angular, NgRx, Angular CLI & Angular Material Starter Project
https://tomastrajan.github.io/angular-ngrx-material-starter
MIT License
2.82k stars 919 forks source link

Use Angular Material TestHarness in tests #513

Open tomastrajan opened 4 years ago

tomastrajan commented 4 years ago

It would be great to migrate tests to use new Angular Material Component Test Harness in the unit tests.

The migration should be mostly mechanical as it's basically replacing ad-hoc selectors with the selectors provided by the @angular/cdk.

Test can be run in watch mode using npm run watch...

tomastrajan commented 4 years ago

Please write comment if you wanna migrate some component tests so that we can prevent duplicate effort

mcanoglu commented 4 years ago

Hi! I would like to give it a try.

tomastrajan commented 4 years ago

@mcanoglu thank you for great contribution!

For others, there are still many components that can be migrated to use TestHarness and now you even have great example of how to do it by @mcanoglu !

yousafnawaz commented 2 years ago

Hi @tomastrajan, I would like to migrate some components to use . https://material.angular.io/guide/using-component-harnesses Angular Material Component Test Harness