You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(material/testing): Modify HarnessLoader with the addition of
`getHarnessAtIndex` and `countHarnesses`
These two new functions are intended to expand harness testing
functionality by providing built-in functions for commonly used
patterns.
* `getHarnessAtIndex` functions similarly to `getHarness`, but returns
a harness for the matching component instance with the given index.
An example use case is to fetch the nth MatOptionHarness on screen.
* `countHarnesses` simply counts the number of matching component
instances and returns the result.
Documentation is updated to reflect this changes, and adds a missing row
for the `hasHarness` function
Manually tested using the MatInputHarness tests
0 commit comments