diff --git a/lib/core/userinfo/components/user-info.component.html b/lib/core/userinfo/components/user-info.component.html index 62a865fcd07..95a138052ab 100644 --- a/lib/core/userinfo/components/user-info.component.html +++ b/lib/core/userinfo/components/user-info.component.html @@ -19,8 +19,8 @@ data-automation-id="adf-user-profile">
-
-
+
+
user-info-profile-button
diff --git a/lib/core/userinfo/components/user-info.component.spec.ts b/lib/core/userinfo/components/user-info.component.spec.ts index 7706f7504d2..643554eea3a 100644 --- a/lib/core/userinfo/components/user-info.component.spec.ts +++ b/lib/core/userinfo/components/user-info.component.spec.ts @@ -554,6 +554,14 @@ describe('User info component', () => { getCurrentUserInfoStub = spyOn(identityUserService, 'getCurrentUserInfo').and.returnValue(identityUserMock); })); + it('should show the identity user initials if is not ecm user', async () => { + fixture.detectChanges(); + await fixture.whenStable(); + fixture.detectChanges(); + expect(element.querySelector('#userinfo_container')).toBeDefined(); + expect(element.querySelector('#user-initials-image').textContent).toContain('ff'); + }); + it('should able to fetch identity userInfo', async(() => { fixture.detectChanges();