diff --git a/lib/content-services/src/lib/breadcrumb/breadcrumb.component.html b/lib/content-services/src/lib/breadcrumb/breadcrumb.component.html index b038c19438..af527bd2e8 100644 --- a/lib/content-services/src/lib/breadcrumb/breadcrumb.component.html +++ b/lib/content-services/src/lib/breadcrumb/breadcrumb.component.html @@ -72,7 +72,7 @@ role="navigation" [attr.aria-label]="'BREADCRUMB.ARIA-LABEL.BREADCRUMB' | translate" > -
+
{{ root | translate }}
diff --git a/lib/content-services/src/lib/permission-manager/components/user-icon-column/user-icon-column.component.spec.ts b/lib/content-services/src/lib/permission-manager/components/user-icon-column/user-icon-column.component.spec.ts index e344746a42..749abb4c84 100644 --- a/lib/content-services/src/lib/permission-manager/components/user-icon-column/user-icon-column.component.spec.ts +++ b/lib/content-services/src/lib/permission-manager/components/user-icon-column/user-icon-column.component.spec.ts @@ -63,7 +63,7 @@ describe('UserIconColumnComponent', () => { }; component.ngOnInit(); fixture.detectChanges(); - expect(element.querySelector('[id="user-initials-image"]').textContent).toContain('fu'); + expect(element.querySelector('[data-automation-id="user-initials-image"]').textContent).toContain('fu'); }); it('should render person value from node', () => { @@ -80,7 +80,7 @@ describe('UserIconColumnComponent', () => { } as NodeEntry; component.ngOnInit(); fixture.detectChanges(); - expect(element.querySelector('[id="user-initials-image"]').textContent).toContain('FU'); + expect(element.querySelector('[data-automation-id="user-initials-image"]').textContent).toContain('FU'); }); }); diff --git a/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.html b/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.html index bbf46bf1e9..8aafaaf9fe 100644 --- a/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.html +++ b/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.html @@ -2,7 +2,7 @@ class="adf-filter"> - - - - + diff --git a/lib/core/src/lib/userinfo/components/user-info.component.spec.ts b/lib/core/src/lib/userinfo/components/user-info.component.spec.ts index 7dc7c4195c..fe5f89efdd 100644 --- a/lib/core/src/lib/userinfo/components/user-info.component.spec.ts +++ b/lib/core/src/lib/userinfo/components/user-info.component.spec.ts @@ -258,7 +258,7 @@ describe('User info component', () => { }); it('should show N/A when the job title is null', () => { - const imageButton = element.querySelector('#user-initials-image'); + const imageButton = element.querySelector('[data-automation-id="user-initials-image"]'); imageButton.click(); fixture.detectChanges(); expect(element.querySelector('#userinfo_container')).not.toBeNull(); @@ -269,7 +269,7 @@ describe('User info component', () => { }); it('should not show the tabs', () => { - const imageButton = element.querySelector('#user-initials-image'); + const imageButton = element.querySelector('[data-automation-id="user-initials-image"]'); imageButton.click(); fixture.detectChanges(); const tabHeader = fixture.debugElement.query(By.css('#tab-group-env')); @@ -285,7 +285,7 @@ describe('User info component', () => { lastName: 'Adams', email: 'wilbur@app.com' }); - expect(expected).toBe('
WA
'); + expect(expected).toBe('
WA
'); component.ecmUser$.subscribe((response: EcmUserModel) => { expect(response).toBeDefined(); expect(response.avatarId).toBeNull(); @@ -421,7 +421,7 @@ describe('User info component', () => { await whenFixtureReady(); expect(element.querySelector('#userinfo_container')).toBeDefined(); - expect(element.querySelector('#user-initials-image').textContent).toContain('ff'); + expect(element.querySelector('[data-automation-id="user-initials-image"]').textContent).toContain('ff'); }); it('should show the tabs for the env', async () => { @@ -462,7 +462,7 @@ describe('User info component', () => { it('should show the identity user initials if is not ecm user', async () => { await whenFixtureReady(); expect(element.querySelector('#userinfo_container')).toBeDefined(); - expect(element.querySelector('#user-initials-image').textContent).toContain('ff'); + expect(element.querySelector('[data-automation-id="user-initials-image"]').textContent).toContain('ff'); }); it('should able to fetch identity userInfo', (done) => { diff --git a/lib/testing/src/lib/protractor/core/pages/user-info.page.ts b/lib/testing/src/lib/protractor/core/pages/user-info.page.ts index 960d86839b..408f9326ad 100644 --- a/lib/testing/src/lib/protractor/core/pages/user-info.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/user-info.page.ts @@ -34,7 +34,7 @@ export class UserInfoPage { processTenant = $('.detail-profile'); apsImage = $('img[id="bpm-user-detail-image"]'); acsImage = $('img[id="ecm-user-detail-image"]'); - initialImage = $$('div[id="user-initials-image"]').first(); + initialImage = $$('div[data-automation-id="user-initials-image"]').first(); userInfoSsoHeaderTitle = this.dialog.$('div[id="identity-username"]'); userInfoSsoTitle = $('.adf-userinfo__detail-title'); ssoEmail = $('#identity-email');