diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.html b/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.html index 76c2a0426a..4514720a5d 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.html +++ b/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.html @@ -1,23 +1,25 @@
-
- +
+
- + + - {{ (title || 'ADF_CLOUD_GROUPS.SEARCH-GROUP') | translate }} + { fixture.detectChanges(); - const matLabel = element.querySelector('#adf-group-cloud-title-id'); - expect(matLabel.textContent).toEqual('TITLE_KEY'); + const inputElement = element.querySelector('[data-automation-id="adf-cloud-group-search-input"]'); + + expect(inputElement.placeholder).toEqual('TITLE_KEY'); + }); + + it('should not populate placeholder when title is not present', () => { + fixture.detectChanges(); + + const inputElement = element.querySelector('[data-automation-id="adf-cloud-group-search-input"]'); + + expect(inputElement.placeholder).toEqual(''); }); describe('Search group', () => {