From 2edbdddb20e8b8d23be626cd2b556459cbdf8bdc Mon Sep 17 00:00:00 2001 From: Diogo Bastos <50139916+DiogoABastos@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:37:10 +0100 Subject: [PATCH] AAE-21392 Fix dropdown form widget style (#9605) --- .../widgets/dropdown/dropdown-cloud.widget.html | 12 ++++-------- .../widgets/dropdown/dropdown-cloud.widget.spec.ts | 7 +------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.html b/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.html index 0bf385425ec..fb9dbe25b25 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.html +++ b/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.html @@ -1,15 +1,10 @@
-
- -
- - {{ defaultOption.name }} - + diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.spec.ts b/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.spec.ts index 340dc227cb5..07cd9e2f004 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.spec.ts +++ b/lib/process-services-cloud/src/lib/form/components/widgets/dropdown/dropdown-cloud.widget.spec.ts @@ -36,7 +36,6 @@ import { TaskVariableCloud } from '../../../models/task-variable-cloud.model'; import { HarnessLoader } from '@angular/cdk/testing'; import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; import { MatSelectHarness } from '@angular/material/select/testing'; -import { MatFormFieldHarness } from '@angular/material/form-field/testing'; import { MatTooltipHarness } from '@angular/material/tooltip/testing'; describe('DropdownCloudWidgetComponent', () => { @@ -239,12 +238,8 @@ describe('DropdownCloudWidgetComponent', () => { await dropdown.open(); await dropdown.clickOptions({ selector: '[id="empty"]' }); - const formField = await loader.getHarness(MatFormFieldHarness); - const dropdownLabel = await formField.getLabel(); - - expect(dropdownLabel).toEqual('This is a mock none option'); + expect(await dropdown.getValueText()).toEqual('This is a mock none option'); expect(widget.fieldValue).toEqual(undefined); - expect(await dropdown.getValueText()).toEqual(''); }); });