Skip to content

Commit

Permalink
Merge branch 'develop' into Fix-ohcnetwork#7244-1
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Apr 10, 2024
2 parents 2e3e2d7 + d615772 commit 1647ca5
Show file tree
Hide file tree
Showing 12 changed files with 341 additions and 356 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/patient_spec/patient_registration.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe("Patient Creation with consultation", () => {
patientTransfer.clickAdmitPatientRecordButton();
patientTransfer.clickTransferPopupContinueButton();
patientTransfer.clickTransferPatientNameList(patientTransferName);
patientTransfer.clickTransferPatientDob(patientDateOfBirth);
patientTransfer.clickTransferPatientYOB(yearOfBirth);
patientTransfer.clickTransferSubmitButton();
patientTransfer.verifyFacilitySuccessfullMessage();
patientTransfer.clickConsultationCancelButton();
Expand All @@ -263,7 +263,7 @@ describe("Patient Creation with consultation", () => {
patientTransfer.clickAdmitPatientRecordButton();
patientTransfer.clickTransferPopupContinueButton();
patientTransfer.clickTransferPatientNameList(patientTransferName);
patientTransfer.clickTransferPatientDob(patientDateOfBirth);
patientTransfer.clickTransferPatientYOB(yearOfBirth);
patientTransfer.clickTransferSubmitButton();
patientTransfer.verifyFacilityErrorMessage();
});
Expand Down
7 changes: 3 additions & 4 deletions cypress/pageobject/Patient/PatientTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ class PatientTransfer {
cy.get("li[role=option]").contains(facilityName).click();
}

clickTransferPatientDob(dateOfBirth: string) {
cy.get("#dateofbirth-transferform").scrollIntoView();
cy.get("#dateofbirth-transferform").should("be.visible").click();
cy.get("#date-input").click().type(dateOfBirth);
clickTransferPatientYOB(yearOfBirth: string) {
cy.get("#year_of_birth").scrollIntoView();
cy.get("#year_of_birth").should("be.visible").click().type(yearOfBirth);
}

clickTransferSubmitButton() {
Expand Down
Loading

0 comments on commit 1647ca5

Please sign in to comment.