In one of the test files we forked from Angular (router_integration_spec.ts) there are two components, AbsoluteSimpleLinkCmp and RelativeLinkCmp that have identical selector and template values, which can lead to component ID collisions. We worked around this by adding an irrelevant :not(head) to RelativeLinkCmp's selector, however it turns out that there is another definition of RelativeLinkCmp earlier in the file (with unmodified selector) that can still lead to an ID collision. I switched the selector "uniquification" to AbsoluteSimpleLinkCmp, so now it should not collide with either of the RelativeLinkCmp definitions.
๐งช Testing
Ran tests locally.
โ Checklist
[x] I have updated the project documentation to reflect my changes or determined no changes are needed.
Pull Request
๐คจ Rationale
A build hit a test failure unrelated to the changes in that PR: https://github.com/ni/nimble/actions/runs/9009318573/job/24753280540?pr=2083
๐ฉโ๐ป Implementation
In one of the test files we forked from Angular (
router_integration_spec.ts
) there are two components,AbsoluteSimpleLinkCmp
andRelativeLinkCmp
that have identicalselector
andtemplate
values, which can lead to component ID collisions. We worked around this by adding an irrelevant:not(head)
toRelativeLinkCmp
's selector, however it turns out that there is another definition ofRelativeLinkCmp
earlier in the file (with unmodified selector) that can still lead to an ID collision. I switched the selector "uniquification" toAbsoluteSimpleLinkCmp
, so now it should not collide with either of theRelativeLinkCmp
definitions.๐งช Testing
Ran tests locally.
โ Checklist