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
Instances are returned from the 1st selector match. I would have assumed that it would return instances in all matching CSS selectors (see the 2nd test).
I know you've specified from the docs:
A css selector helps to find the first matched element. It will be used to look up the desired declaration.
But I don't see the cons of selecting all instances in all matching selectors. Just needs to have selectors specific enough.
Cheers !
The text was updated successfully, but these errors were encountered:
Heya ! It's me again !
So, I've rendered a component in which I want to select several instances of directives by selector, and I stumbled on a little inconsistency.
Here is the repro: https://stackblitz.com/edit/github-ytvy85-gfwzxj?file=src/test.spec.ts
Seing this: https://github.com/ike18t/ng-mocks/blob/57471fc88f342099cf000d998a634138f457c718/libs/ng-mocks/src/lib/mock-helper/find-instance/mock-helper.find-instances.ts#L19
Instances are returned from the 1st selector match. I would have assumed that it would return instances in all matching CSS selectors (see the 2nd test).
I know you've specified from the docs:
But I don't see the cons of selecting all instances in all matching selectors. Just needs to have selectors specific enough.
Cheers !
The text was updated successfully, but these errors were encountered: