From 763c5b5ac318e64b9ff4145bd21584c1d007fef2 Mon Sep 17 00:00:00 2001 From: Ayush <54752747+ayush-AI@users.noreply.github.com> Date: Tue, 4 Jul 2023 10:39:56 +0530 Subject: [PATCH] fixed the failing skipped tests (#680) Co-authored-by: Dennis Kigen --- .../death-info/death-info-section.test.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/esm-patient-registration-app/src/patient-registration/section/death-info/death-info-section.test.tsx b/packages/esm-patient-registration-app/src/patient-registration/section/death-info/death-info-section.test.tsx index 8e55bfe20..6ce31922b 100644 --- a/packages/esm-patient-registration-app/src/patient-registration/section/death-info/death-info-section.test.tsx +++ b/packages/esm-patient-registration-app/src/patient-registration/section/death-info/death-info-section.test.tsx @@ -4,6 +4,7 @@ import { Formik, Form } from 'formik'; import { initialFormValues } from '../../patient-registration.component'; import { DeathInfoSection } from './death-info-section.component'; import { FormValues } from '../../patient-registration-types'; +import { PatientRegistrationContext } from '../../patient-registration-context'; jest.mock('@openmrs/esm-framework', () => { const originalModule = jest.requireActual('@openmrs/esm-framework'); @@ -15,16 +16,18 @@ jest.mock('@openmrs/esm-framework', () => { }); // TODO: Implement feature and get tests to pass -describe.skip('death info section', () => { +describe('death info section', () => { const formValues: FormValues = initialFormValues; const setupSection = async (isDead?: boolean) => { render( - -
- - -
, + + +
+ + +
+
, ); const allInputs = screen.queryAllByLabelText( (content, element) => element.tagName.toLowerCase() === 'input',