Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Develop To Staging v24.49.0 #9227

Merged
merged 10 commits into from
Nov 28, 2024
Prev Previous commit
Next Next commit
Patient Home Page redesign (#9203)
Co-authored-by: mahendar <mahendarchikkolla@gmail.com>
Co-authored-by: vinu tv <vinutv91@gmail.com>
3 people authored Nov 27, 2024
commit b7c467fcc4a7690b9702ee4b3d3672b4050d5265
5 changes: 2 additions & 3 deletions cypress/e2e/patient_spec/PatientRegistration.cy.ts
Original file line number Diff line number Diff line change
@@ -132,6 +132,7 @@ describe("Patient Creation with consultation", () => {
"Middle Class",
"Family member",
);

patientMedicalHistory.verifyPatientMedicalDetails(
patientOnePresentHealth,
patientOneOngoingMedication,
@@ -216,11 +217,9 @@ describe("Patient Creation with consultation", () => {
patientMedicalHistory.verifyNoSymptosPresent("Diabetes");
// verify insurance details and dedicatd page
cy.get("[data-testid=patient-details]")
.contains("member id")
.contains("Member ID")
.scrollIntoView();
cy.wait(2000);
patientInsurance.clickPatientInsuranceViewDetail();
cy.wait(3000);
patientInsurance.verifyPatientPolicyDetails(
patientOneFirstSubscriberId,
patientOneFirstPolicyId,
3 changes: 2 additions & 1 deletion cypress/pageobject/Patient/PatientConsultation.ts
Original file line number Diff line number Diff line change
@@ -122,9 +122,10 @@ export class PatientConsultationPage {
}

clickViewConsultationButton() {
cy.get("a").contains("Encounters").click();
cy.verifyAndClickElement(
"#view_consultation_and_log_updates",
"View Consultation / Log Updates",
"View Updates",
);
}

4 changes: 2 additions & 2 deletions cypress/pageobject/Patient/PatientCreation.ts
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ export class PatientPage {
expect($dashboard).to.contain(patientName);
expect($dashboard).to.contain(phoneNumber);
expect($dashboard).to.contain(emergencyPhoneNumber);
expect($dashboard).to.contain(yearOfBirth);
//expect($dashboard).to.contain(yearOfBirth); //Commented out because new proposed UI does not have DOB. Can change later.
expect($dashboard).to.contain(bloodGroup);
expect($dashboard).to.contain(occupation);
socioeconomicStatus && expect($dashboard).to.contain(socioeconomicStatus);
@@ -221,7 +221,7 @@ export class PatientPage {
}

clickPatientUpdateDetails() {
cy.verifyAndClickElement("#update-patient-details", "Update Details");
cy.verifyAndClickElement("#update-patient-details", "Edit Profile");
}

interceptFacilities() {
4 changes: 3 additions & 1 deletion cypress/pageobject/Patient/PatientMedicalHistory.ts
Original file line number Diff line number Diff line change
@@ -33,7 +33,9 @@ class PatientMedicalHistory {
patientSymptoms6: string,
patientSymptoms7: string,
) {
cy.get("[data-testid=patient-details]").then(($dashboard) => {
cy.get("a").contains("Health Profile").click();
cy.wait(2000);
cy.get("[data-test-id=patient-health-profile]").then(($dashboard) => {
cy.url().should("include", "/facility/");
expect($dashboard).to.contain(patientPresentHealth);
expect($dashboard).to.contain(patientOngoingMedication);
2 changes: 2 additions & 0 deletions cypress/pageobject/Sample/SampleTestCreate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export class SampleTestPage {
visitSampleRequestPage(): void {
cy.get("a").contains("Service Request").click();
cy.verifyAndClickElement("#sample-request-btn", "Request Sample Test");
cy.url().should("include", "/sample-test");
}
@@ -60,6 +61,7 @@ export class SampleTestPage {
fastTrack: string,
sampleTestResult: string,
): void {
cy.get("a").contains("Service Request").click();
cy.verifyContentPresence("#sample-test-status", [sampleTestStatus]);
cy.verifyContentPresence("#sample-test-type", [sampleTestType]);
cy.verifyContentPresence("#sample-test-fast-track", [fastTrack]);
Loading