I ran the data-test attribute (angular) autofix and noticed in many files, it was adding data test attributes to some tags and not others.
For example:
My config indicates that this should add it to the a tag, the td tag and the input tag.
I noticed there are no td with a data test attribute added so that made me think it is due to
being a grandchild of the first node/ or really nested in, not entirely sure though, that is just my guess from looking at the code.
Thanks for raising this Zahra, I took a look into this and I believe it is once you add a structural directive like *ngIf or *ngFor onto an element, that element and all of it's children are no longer checked by this rule.
I ran the data-test attribute (angular) autofix and noticed in many files, it was adding data test attributes to some tags and not others. For example:
My config indicates that this should add it to the
a
tag, thetd
tag and theinput
tag. I noticed there are notd
with a data test attribute added so that made me think it is due toThanks for raising this Zahra, I took a look into this and I believe it is once you add a structural directive like
*ngIf
or*ngFor
onto an element, that element and all of it's children are no longer checked by this rule.Will try to get a fix in for this :+1: