From ac7d1823b3dbd8405368f02b3a0fbcb1fbed271a Mon Sep 17 00:00:00 2001 From: Diogo Bastos Date: Wed, 17 Apr 2024 14:50:30 +0100 Subject: [PATCH] AAE-21703 Fix group form widget style --- .../widgets/group/group-cloud.widget.html | 34 ++++++++++--------- .../components/group-cloud.component.html | 4 +-- .../components/group-cloud.component.spec.ts | 13 +++++-- 3 files changed, 31 insertions(+), 20 deletions(-) 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', () => {