From 3f4069a02cfa2d46fcb3d1db3f8d3b25b5af53eb Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:00:32 +0500 Subject: [PATCH] Fixed the flaky test in patient registration test (#8893) --- cypress/e2e/patient_spec/PatientLogUpdate.cy.ts | 1 + cypress/e2e/patient_spec/PatientRegistration.cy.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/patient_spec/PatientLogUpdate.cy.ts b/cypress/e2e/patient_spec/PatientLogUpdate.cy.ts index 3907784b4b7..835e53459eb 100644 --- a/cypress/e2e/patient_spec/PatientLogUpdate.cy.ts +++ b/cypress/e2e/patient_spec/PatientLogUpdate.cy.ts @@ -113,6 +113,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => { cy.closeNotification(); // Submit the doctors log update cy.submitButton("Save and Continue"); + cy.wait(2000); cy.verifyNotification("Progress Note created successfully"); cy.closeNotification(); // modify the relevant critical care log update diff --git a/cypress/e2e/patient_spec/PatientRegistration.cy.ts b/cypress/e2e/patient_spec/PatientRegistration.cy.ts index 26adc7c882b..2143ff7a651 100644 --- a/cypress/e2e/patient_spec/PatientRegistration.cy.ts +++ b/cypress/e2e/patient_spec/PatientRegistration.cy.ts @@ -239,7 +239,7 @@ describe("Patient Creation with consultation", () => { patientMedicalHistory.verifyNoSymptosPresent("Diabetes"); // verify insurance details and dedicatd page cy.get("[data-testid=patient-details]") - .contains(patientOneFirstSubscriberId) + .contains("member id") .scrollIntoView(); cy.wait(2000); patientInsurance.verifyPatientPolicyDetails(