From 76a0d408bbd1924f649bb7e84ed4f89afb4be943 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.spec.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 cd28d70586c..90009964c61 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', () => { @@ -250,12 +249,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(''); }); });