From d63196fc91252ae3fd70da4329fe47ea07d9c01d Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:48:19 +0530 Subject: [PATCH 1/2] flaky test --- cypress/e2e/patient_spec/PatientRegistration.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( From a6f9418f179ad58000c3b2102396f495867e4f89 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:12:06 +0530 Subject: [PATCH 2/2] added wait for notification delay --- cypress/e2e/patient_spec/PatientLogUpdate.cy.ts | 1 + 1 file changed, 1 insertion(+) 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