From 772217ca56719e3ff6e0d32ce7e77b4da4376e84 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:49:03 +0530 Subject: [PATCH] fix the flaky test --- cypress/e2e/patient_spec/patient_consultation.cy.ts | 1 + cypress/e2e/patient_spec/patient_logupdate.cy.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/cypress/e2e/patient_spec/patient_consultation.cy.ts b/cypress/e2e/patient_spec/patient_consultation.cy.ts index 36c3ebdcb40..d851e08ed14 100644 --- a/cypress/e2e/patient_spec/patient_consultation.cy.ts +++ b/cypress/e2e/patient_spec/patient_consultation.cy.ts @@ -193,6 +193,7 @@ describe("Patient Consultation in multiple combination", () => { cy.verifyNotification( "Create Diagnoses - Atleast one diagnosis is required" ); + cy.closeNotification(); patientConsultationPage.selectPatientDiagnosis( diagnosis4, "add-icd11-diagnosis-as-confirmed" diff --git a/cypress/e2e/patient_spec/patient_logupdate.cy.ts b/cypress/e2e/patient_spec/patient_logupdate.cy.ts index 8d68cd59622..143be363efc 100644 --- a/cypress/e2e/patient_spec/patient_logupdate.cy.ts +++ b/cypress/e2e/patient_spec/patient_logupdate.cy.ts @@ -97,6 +97,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => { cy.get("#consciousness_level-2").click(); cy.submitButton("Save"); cy.verifyNotification("Consultation Updates details created successfully"); + cy.closeNotification(); // edit the card and verify the data. patientLogupdate.clickLogupdateCard("#dailyround-entry", patientCategory); cy.verifyContentPresence("#consultation-preview", [