From 284610010cd68c42cc1cd00d0612ab3e07e5f6ce Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 6 May 2024 20:54:46 +0530 Subject: [PATCH] MEWS Score (#7761) --- .../e2e/patient_spec/patient_logupdate.cy.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/cypress/e2e/patient_spec/patient_logupdate.cy.ts b/cypress/e2e/patient_spec/patient_logupdate.cy.ts index 859cf623f30..470d8d8fab3 100644 --- a/cypress/e2e/patient_spec/patient_logupdate.cy.ts +++ b/cypress/e2e/patient_spec/patient_logupdate.cy.ts @@ -154,6 +154,38 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => { cy.verifyContentPresence("#basic-information", [additionalSymptoms]); }); + it("Create a normal log update to verify MEWS Score Functionality", () => { + patientPage.visitPatient(domicilaryPatient); + patientConsultationPage.clickEditConsultationButton(); + patientConsultationPage.selectPatientSuggestion("Domiciliary Care"); + cy.submitButton("Update Consultation"); + cy.verifyNotification("Consultation updated successfully"); + cy.closeNotification(); + patientLogupdate.clickLogupdate(); + // Verify the MEWS Score reflection + patientLogupdate.selectPatientCategory(patientCategory); + patientLogupdate.typeSystolic(patientSystolic); + patientLogupdate.typeDiastolic(patientDiastolic); + patientLogupdate.typePulse(patientPulse); + patientLogupdate.typeTemperature(patientTemperature); + patientLogupdate.typeRespiratory(patientRespiratory); + cy.get("#consciousness_level-2").click(); + cy.submitButton("Save"); + cy.verifyNotification("Consultation Updates details created successfully"); + cy.closeNotification(); + cy.verifyContentPresence("#consultation-buttons", ["9"]); + // Verify the Incomplete data will give blank info + patientLogupdate.clickLogupdate(); + patientLogupdate.selectPatientCategory(patientCategory); + patientLogupdate.typeSystolic(patientSystolic); + patientLogupdate.typeDiastolic(patientDiastolic); + patientLogupdate.typePulse(patientPulse); + cy.submitButton("Save"); + cy.verifyNotification("Consultation Updates details created successfully"); + cy.closeNotification(); + cy.verifyContentPresence("#consultation-buttons", ["-"]); + }); + afterEach(() => { cy.saveLocalStorage(); });