diff --git a/frontend/src/app/components/checkin/check-in-form-metric/check-in-form-metric.component.spec.ts b/frontend/src/app/components/checkin/check-in-form-metric/check-in-form-metric.component.spec.ts index 452427d0d3..a07fbb3373 100644 --- a/frontend/src/app/components/checkin/check-in-form-metric/check-in-form-metric.component.spec.ts +++ b/frontend/src/app/components/checkin/check-in-form-metric/check-in-form-metric.component.spec.ts @@ -127,7 +127,7 @@ describe('CheckInFormComponent', () => { false] ])('should correctly validate value input', (value, validity) => { component.dialogForm = new FormGroup({ - metricValue: new FormControl(undefined, [Validators.required, + metricValue: new FormControl(undefined, [Validators.required, Validators.pattern('^\\s*-?\\d+\\.?\\d*\\s*$')]) }); component.dialogForm.setValue({ metricValue: value }); diff --git a/frontend/src/app/components/checkin/check-in-form/check-in-form.component.spec.ts b/frontend/src/app/components/checkin/check-in-form/check-in-form.component.spec.ts index 403c17cbe7..f2ea09cf57 100644 --- a/frontend/src/app/components/checkin/check-in-form/check-in-form.component.spec.ts +++ b/frontend/src/app/components/checkin/check-in-form/check-in-form.component.spec.ts @@ -157,7 +157,6 @@ describe('CheckInFormComponent', () => { expect(component.dialogForm.value) .toStrictEqual({ confidence: checkInMetric.confidence, - metricValue: checkInMetric.value!.toString(), changeInfo: checkInMetric.changeInfo, initiatives: checkInMetric.initiatives, actionList: undefined @@ -168,10 +167,10 @@ describe('CheckInFormComponent', () => { component.keyResult = keyResultOrdinal; component.ngOnInit(); component.setDefaultValues(); + console.log(component.dialogForm.value); expect(component.dialogForm.value) .toStrictEqual({ confidence: keyResultOrdinal.lastCheckIn!.confidence, - ordinal: {} as Zone, changeInfo: '', initiatives: '', actionList: []