diff --git a/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts b/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts index d8b4b82c5b..b2ee24948f 100644 --- a/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts +++ b/libs/ui/elements/src/lib/metadata-info/linkify.directive.spec.ts @@ -148,7 +148,7 @@ describe('GnUiLinkifyDirective', () => { fixture.detectChanges() await fixture.whenStable() const href = getAnchorElement()[0].nativeElement.getAttribute('href') - const matIcon = getAnchorElement()[0].nativeElement.childNodes[0] + const matIcon = getAnchorElement()[0].nativeElement.childNodes[1] expect(href).toBe(testWithHTML.output) expect(matIcon.nodeName).toContain('MAT-ICON') })