From 3223da58c5bbd2d76b607302e391e519b8733419 Mon Sep 17 00:00:00 2001 From: Wojciech Duda <69160975+wojd0@users.noreply.github.com> Date: Mon, 4 Dec 2023 18:07:21 +0100 Subject: [PATCH] [AAE-18450] added label to filter --- .../widgets/radio-buttons/radio-buttons-cloud.widget.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.spec.ts b/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.spec.ts index 990d637435f..a783446a0c5 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.spec.ts +++ b/lib/process-services-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.spec.ts @@ -132,8 +132,7 @@ describe('RadioButtonsCloudWidgetComponent', () => { const option = await loader.getHarness(MatRadioButtonHarness.with({ label: 'opt-name-1' })); await option.check(); - const selectedOption = await loader.getHarness(MatRadioButtonHarness.with({ checked: true })); - expect(await selectedOption.getLabelText()).toBe('opt-name-1'); + await loader.getHarness(MatRadioButtonHarness.with({ checked: true, label: 'opt-name-1'})); expect(widget.field.isValid).toBe(true); });