From 0a39eb2472401c6d0497797fadbcf91cee63d460 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:49:10 +0530 Subject: [PATCH 1/8] part of HCX workflow --- .env | 3 +- cypress/e2e/hcx_spec/HcxClaims.cy.ts | 64 +++++++++++++++++++ cypress/pageobject/Hcx/HcxClaims.ts | 9 +++ .../pageobject/Patient/PatientConsultation.ts | 16 +++++ cypress/pageobject/Patient/PatientCreation.ts | 4 ++ .../pageobject/Patient/PatientInsurance.ts | 4 ++ src/components/HCX/PolicyEligibilityCheck.tsx | 2 + src/components/Patient/PatientHome.tsx | 1 + 8 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 cypress/e2e/hcx_spec/HcxClaims.cy.ts create mode 100644 cypress/pageobject/Hcx/HcxClaims.ts diff --git a/.env b/.env index ebc0ebd5be3..9e76793dcdb 100644 --- a/.env +++ b/.env @@ -14,4 +14,5 @@ ESLINT_NO_DEV_ERRORS=true CARE_CDN_URL="https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com http://localhost:4566" REACT_ALLOWED_LOCALES="en,hi,ta,ml,mr,kn" -REACT_ENABLED_APPS="ohcnetwork/care_livekit_fe@main" +REACT_ENABLED_APPS="ohcnetwork/care_livekit_fe@main,ohcnetwork/care_hcx_fe@main" +REACT_ENABLE_HCX=true \ No newline at end of file diff --git a/cypress/e2e/hcx_spec/HcxClaims.cy.ts b/cypress/e2e/hcx_spec/HcxClaims.cy.ts new file mode 100644 index 00000000000..67535f8d6f6 --- /dev/null +++ b/cypress/e2e/hcx_spec/HcxClaims.cy.ts @@ -0,0 +1,64 @@ +import { PatientConsultationPage } from "pageobject/Patient/PatientConsultation"; +import LoginPage from "../../pageobject/Login/LoginPage"; +import { PatientPage } from "../../pageobject/Patient/PatientCreation"; +import PatientInsurance from "pageobject/Patient/PatientInsurance"; +import { HcxClaims } from "pageobject/Hcx/HcxClaims"; + +describe("HCX Claims configuration and approval workflow", () => { + const loginPage = new LoginPage(); + const patientPage = new PatientPage(); + const patientConsultationPage = new PatientConsultationPage(); + const patientInsurance = new PatientInsurance(); + const hcxClaims = new HcxClaims(); + const hcxPatientName = "Dummy Patient 14"; + const firstInsuranceIdentifier = "insurance-details-0"; + const patientMemberId = "001"; + const patientPolicyId = "100"; + const patientInsurerName = "Demo Payor"; + + before(() => { + loginPage.loginAsDisctrictAdmin(); + cy.saveLocalStorage(); + }); + + beforeEach(() => { + cy.restoreLocalStorage(); + cy.clearLocalStorage(/filters--.+/); + cy.awaitUrl("/patients"); + }); + + it("Verify the HCX Workflow for a patient", () => { + // Modify the insurance for a facility + patientPage.visitPatient(hcxPatientName); + patientConsultationPage.clickPatientDetails(); + patientPage.clickPatientUpdateDetails(); + patientInsurance.clickAddInsruanceDetails(); + patientInsurance.typePatientInsuranceDetail( + firstInsuranceIdentifier, + "subscriber_id", + patientMemberId, + ); + patientInsurance.typePatientInsuranceDetail( + firstInsuranceIdentifier, + "policy_id", + patientPolicyId, + ); + patientInsurance.selectHcxInsurer(patientInsurerName); + cy.submitButton("Save Details"); + cy.verifyNotification("Patient updated successfully"); + patientConsultationPage.clickViewConsultationButton(); + // Raise a HCX Pre-auth + patientConsultationPage.clickManagePatientButton(); + patientConsultationPage.clickClaimsButton(); + hcxClaims.selectEligiblePolicy(patientInsurerName); + hcxClaims.verifyPolicyEligibity(); + cy.verifyNotification("Checking Policy Eligibility"); + cy.closeNotification(); + // Raise a HCX Claim + // Approve the HCX from there website + }); + + afterEach(() => { + cy.saveLocalStorage(); + }); +}); diff --git a/cypress/pageobject/Hcx/HcxClaims.ts b/cypress/pageobject/Hcx/HcxClaims.ts new file mode 100644 index 00000000000..93e62c639a2 --- /dev/null +++ b/cypress/pageobject/Hcx/HcxClaims.ts @@ -0,0 +1,9 @@ +export class HcxClaims { + selectEligiblePolicy(policy: string) { + cy.clickAndSelectOption("#select-insurance-policy", policy); + } + + verifyPolicyEligibity() { + cy.verifyAndClickElement("#check-eligibity", "Check Eligibility"); + } +} diff --git a/cypress/pageobject/Patient/PatientConsultation.ts b/cypress/pageobject/Patient/PatientConsultation.ts index e0b51b9265e..60f36ad289b 100644 --- a/cypress/pageobject/Patient/PatientConsultation.ts +++ b/cypress/pageobject/Patient/PatientConsultation.ts @@ -13,6 +13,7 @@ export class PatientConsultationPage { selectSymptomsDate(date: string) { cy.clickAndTypeDate("#symptoms_onset_date", date); } + clickAddSymptom() { cy.get("#add-symptom").click(); } @@ -111,4 +112,19 @@ export class PatientConsultationPage { ); cy.wait(3000); } + + clickViewConsultationButton() { + cy.verifyAndClickElement( + "#view_consulation_updates", + "View Consultation / Consultation Updates", + ); + } + + clickManagePatientButton() { + cy.verifyAndClickElement("#show-more", "Manage Patient"); + } + + clickClaimsButton() { + cy.verifyAndClickElement("#consultation-buttons", "Claims"); + } } diff --git a/cypress/pageobject/Patient/PatientCreation.ts b/cypress/pageobject/Patient/PatientCreation.ts index 41b3c02977d..8c9dd4a1c1b 100644 --- a/cypress/pageobject/Patient/PatientCreation.ts +++ b/cypress/pageobject/Patient/PatientCreation.ts @@ -220,6 +220,10 @@ export class PatientPage { cy.visit(patient_url + "/update"); } + clickPatientUpdateDetails() { + cy.verifyAndClickElement("#update-patient-details", "Patient Details"); + } + interceptFacilities() { cy.intercept("GET", "**/facility/*/patient/**").as("getFacilities"); } diff --git a/cypress/pageobject/Patient/PatientInsurance.ts b/cypress/pageobject/Patient/PatientInsurance.ts index 1b91d27b629..c7daada2cc2 100644 --- a/cypress/pageobject/Patient/PatientInsurance.ts +++ b/cypress/pageobject/Patient/PatientInsurance.ts @@ -63,6 +63,10 @@ class PatientInsurance { } }); } + + selectHcxInsurer(insurer: string) { + cy.typeAndSelectOption("#insurer", insurer); + } } export default PatientInsurance; diff --git a/src/components/HCX/PolicyEligibilityCheck.tsx b/src/components/HCX/PolicyEligibilityCheck.tsx index fa02baaea30..1569ea42981 100644 --- a/src/components/HCX/PolicyEligibilityCheck.tsx +++ b/src/components/HCX/PolicyEligibilityCheck.tsx @@ -69,6 +69,7 @@ export default function HCXPolicyEligibilityCheck({
{ )}
Date: Sun, 10 Nov 2024 23:22:17 +0530 Subject: [PATCH 2/8] only enable hcx --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 9e76793dcdb..612c234e535 100644 --- a/.env +++ b/.env @@ -14,5 +14,5 @@ ESLINT_NO_DEV_ERRORS=true CARE_CDN_URL="https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com http://localhost:4566" REACT_ALLOWED_LOCALES="en,hi,ta,ml,mr,kn" -REACT_ENABLED_APPS="ohcnetwork/care_livekit_fe@main,ohcnetwork/care_hcx_fe@main" +REACT_ENABLED_APPS="ohcnetwork/care_hcx_fe@main" REACT_ENABLE_HCX=true \ No newline at end of file From b0b7b80277c1b8eafc76f8e2cc27a2ff54944aa7 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 11 Nov 2024 00:29:22 +0530 Subject: [PATCH 3/8] mocked hcx response --- cypress/e2e/hcx_spec/HcxClaims.cy.ts | 42 ++++++++++++++++--- .../pageobject/Patient/PatientConsultation.ts | 5 ++- cypress/pageobject/Patient/PatientCreation.ts | 2 +- 3 files changed, 41 insertions(+), 8 deletions(-) diff --git a/cypress/e2e/hcx_spec/HcxClaims.cy.ts b/cypress/e2e/hcx_spec/HcxClaims.cy.ts index 67535f8d6f6..b4ac8230e79 100644 --- a/cypress/e2e/hcx_spec/HcxClaims.cy.ts +++ b/cypress/e2e/hcx_spec/HcxClaims.cy.ts @@ -1,8 +1,9 @@ +import { HcxClaims } from "pageobject/Hcx/HcxClaims"; import { PatientConsultationPage } from "pageobject/Patient/PatientConsultation"; +import PatientInsurance from "pageobject/Patient/PatientInsurance"; + import LoginPage from "../../pageobject/Login/LoginPage"; import { PatientPage } from "../../pageobject/Patient/PatientCreation"; -import PatientInsurance from "pageobject/Patient/PatientInsurance"; -import { HcxClaims } from "pageobject/Hcx/HcxClaims"; describe("HCX Claims configuration and approval workflow", () => { const loginPage = new LoginPage(); @@ -17,7 +18,7 @@ describe("HCX Claims configuration and approval workflow", () => { const patientInsurerName = "Demo Payor"; before(() => { - loginPage.loginAsDisctrictAdmin(); + loginPage.loginAsDistrictAdmin(); cy.saveLocalStorage(); }); @@ -27,7 +28,7 @@ describe("HCX Claims configuration and approval workflow", () => { cy.awaitUrl("/patients"); }); - it("Verify the HCX Workflow for a patient", () => { + it("Verify the HCX Workflow for a patient with mocked eligibility", () => { // Modify the insurance for a facility patientPage.visitPatient(hcxPatientName); patientConsultationPage.clickPatientDetails(); @@ -46,7 +47,33 @@ describe("HCX Claims configuration and approval workflow", () => { patientInsurance.selectHcxInsurer(patientInsurerName); cy.submitButton("Save Details"); cy.verifyNotification("Patient updated successfully"); + cy.closeNotification(); + // Navigate to Consultation View and capture dynamic consultation ID + let consultationId: string; patientConsultationPage.clickViewConsultationButton(); + cy.url().then((url) => { + const urlRegex = + /facility\/([^/]+)\/patient\/([^/]+)\/consultation\/([^/]+)/; + const match = url.match(urlRegex); + if (match) { + consultationId = match[3]; + } + }); + // Intercept and mock the eligibility check response using captured consultationId + cy.intercept("POST", "/api/hcx/check_eligibility", (req) => { + req.reply({ + statusCode: 200, + body: { + api_call_id: "bfa228f0-cdfa-4426-bebe-26e996079dbb", + correlation_id: "86ae030c-1b33-4e52-a6f1-7a74a48111eb", + timestamp: Date.now(), + consultation: consultationId, + policy: patientPolicyId, + outcome: "Complete", + limit: 1, + }, + }); + }).as("checkEligibility"); // Raise a HCX Pre-auth patientConsultationPage.clickManagePatientButton(); patientConsultationPage.clickClaimsButton(); @@ -54,8 +81,11 @@ describe("HCX Claims configuration and approval workflow", () => { hcxClaims.verifyPolicyEligibity(); cy.verifyNotification("Checking Policy Eligibility"); cy.closeNotification(); - // Raise a HCX Claim - // Approve the HCX from there website + // Confirm that the eligibility check displays as successful + cy.wait("@checkEligibility").then((interception) => { + const response = interception.response.body; + expect(response.outcome).to.equal("Complete"); + }); }); afterEach(() => { diff --git a/cypress/pageobject/Patient/PatientConsultation.ts b/cypress/pageobject/Patient/PatientConsultation.ts index 60f36ad289b..3386a48c360 100644 --- a/cypress/pageobject/Patient/PatientConsultation.ts +++ b/cypress/pageobject/Patient/PatientConsultation.ts @@ -125,6 +125,9 @@ export class PatientConsultationPage { } clickClaimsButton() { - cy.verifyAndClickElement("#consultation-buttons", "Claims"); + cy.get("#log-update").scrollIntoView(); + cy.intercept(/\/api\/hcx\/policy\/\?.*/).as("policyStatus"); + cy.get("#consultation-buttons").contains("Claims").click(); + cy.wait("@policyStatus").its("response.statusCode").should("eq", 200); } } diff --git a/cypress/pageobject/Patient/PatientCreation.ts b/cypress/pageobject/Patient/PatientCreation.ts index 8c9dd4a1c1b..8f46dec5560 100644 --- a/cypress/pageobject/Patient/PatientCreation.ts +++ b/cypress/pageobject/Patient/PatientCreation.ts @@ -221,7 +221,7 @@ export class PatientPage { } clickPatientUpdateDetails() { - cy.verifyAndClickElement("#update-patient-details", "Patient Details"); + cy.verifyAndClickElement("#update-patient-details", "Update Details"); } interceptFacilities() { From ceed7e3a2cf630b6b05def7b98103043f45d3ab3 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 11 Nov 2024 02:22:20 +0530 Subject: [PATCH 4/8] fixed hcx test --- cypress/e2e/hcx_spec/HcxClaims.cy.ts | 5 +- .../patient_spec/PatientRegistration.cy.ts | 49 ++++--------------- .../pageobject/Patient/PatientInsurance.ts | 41 ++-------------- 3 files changed, 19 insertions(+), 76 deletions(-) diff --git a/cypress/e2e/hcx_spec/HcxClaims.cy.ts b/cypress/e2e/hcx_spec/HcxClaims.cy.ts index b4ac8230e79..7224be6b1f5 100644 --- a/cypress/e2e/hcx_spec/HcxClaims.cy.ts +++ b/cypress/e2e/hcx_spec/HcxClaims.cy.ts @@ -44,7 +44,10 @@ describe("HCX Claims configuration and approval workflow", () => { "policy_id", patientPolicyId, ); - patientInsurance.selectHcxInsurer(patientInsurerName); + patientInsurance.selectPatientInsurerName( + firstInsuranceIdentifier, + patientInsurerName, + ); cy.submitButton("Save Details"); cy.verifyNotification("Patient updated successfully"); cy.closeNotification(); diff --git a/cypress/e2e/patient_spec/PatientRegistration.cy.ts b/cypress/e2e/patient_spec/PatientRegistration.cy.ts index cb84fa06674..f47b180a7f4 100644 --- a/cypress/e2e/patient_spec/PatientRegistration.cy.ts +++ b/cypress/e2e/patient_spec/PatientRegistration.cy.ts @@ -7,7 +7,6 @@ import PatientTransfer from "../../pageobject/Patient/PatientTransfer"; import { generatePhoneNumber } from "../../pageobject/utils/constants"; const yearOfBirth = "2001"; -const isHCXEnabled = Cypress.env("ENABLE_HCX"); const calculateAge = () => { const currentYear = new Date().getFullYear(); @@ -58,13 +57,11 @@ describe("Patient Creation with consultation", () => { const patientOneFirstInsuranceId = "insurance-details-0"; const patientOneFirstSubscriberId = "member id 01"; const patientOneFirstPolicyId = "policy name 01"; - const patientOneFirstInsurerId = "insurer id 01"; - const patientOneFirstInsurerName = "insurer name 01"; + const patientOneFirstInsurerName = "Demo Payor"; const patientOneSecondInsuranceId = "insurance-details-1"; const patientOneSecondSubscriberId = "member id 02"; const patientOneSecondPolicyId = "policy name 02"; - const patientOneSecondInsurerId = "insurer id 02"; - const patientOneSecondInsurerName = "insurer name 02"; + const patientOneSecondInsurerName = "Demo Payor"; const patientTransferPhoneNumber = "9849511866"; const patientTransferFacility = "Dummy Shifting Center"; const patientTransferName = "Dummy Patient 10"; @@ -178,21 +175,10 @@ describe("Patient Creation with consultation", () => { "policy_id", patientOneFirstPolicyId, ); - if (isHCXEnabled) { - patientInsurance.selectInsurer("test"); - } else { - patientInsurance.typePatientInsuranceDetail( - patientOneFirstInsuranceId, - "insurer_id", - patientOneFirstInsurerId, - ); - patientInsurance.typePatientInsuranceDetail( - patientOneFirstInsuranceId, - "insurer_name", - patientOneFirstInsurerName, - ); - } - + patientInsurance.selectPatientInsurerName( + patientOneFirstInsuranceId, + patientOneFirstInsurerName, + ); patientInsurance.clickAddInsruanceDetails(); patientInsurance.typePatientInsuranceDetail( patientOneSecondInsuranceId, @@ -204,21 +190,10 @@ describe("Patient Creation with consultation", () => { "policy_id", patientOneSecondPolicyId, ); - if (isHCXEnabled) { - patientInsurance.selectInsurer("Care"); - } else { - patientInsurance.typePatientInsuranceDetail( - patientOneSecondInsuranceId, - "insurer_id", - patientOneSecondInsurerId, - ); - patientInsurance.typePatientInsuranceDetail( - patientOneSecondInsuranceId, - "insurer_name", - patientOneSecondInsurerName, - ); - } - + patientInsurance.selectPatientInsurerName( + patientOneSecondInsuranceId, + patientOneSecondInsurerName, + ); patientPage.clickUpdatePatient(); cy.wait(3000); patientPage.verifyPatientUpdated(); @@ -247,16 +222,12 @@ describe("Patient Creation with consultation", () => { patientInsurance.verifyPatientPolicyDetails( patientOneFirstSubscriberId, patientOneFirstPolicyId, - patientOneFirstInsurerId, patientOneFirstInsurerName, - isHCXEnabled, ); patientInsurance.verifyPatientPolicyDetails( patientOneSecondSubscriberId, patientOneSecondPolicyId, - patientOneSecondInsurerId, patientOneSecondInsurerName, - isHCXEnabled, ); }); diff --git a/cypress/pageobject/Patient/PatientInsurance.ts b/cypress/pageobject/Patient/PatientInsurance.ts index c7daada2cc2..79d6e3b7510 100644 --- a/cypress/pageobject/Patient/PatientInsurance.ts +++ b/cypress/pageobject/Patient/PatientInsurance.ts @@ -9,32 +9,10 @@ class PatientInsurance { }); } - selectInsurer(insurer: string) { - cy.intercept("GET", "**/api/v1/hcx/payors/**", { - statusCode: 200, - body: [ - { - name: "test payor 2", - code: "testpayor2.swasthmock@swasth-hcx-staging", - }, - { - name: "Care Payor", - code: "khavinshankar.gmail@swasth-hcx-staging", - }, - { - name: "Alliance", - code: "hcxdemo.yopmail@swasth-hcx-staging", - }, - ], - }).as("getInsurer"); - cy.get("[name='insurer']") - .last() - .click() - .type(insurer) - .then(() => { - cy.wait("@getInsurer"); - cy.get("[role='option']").contains(insurer).click(); - }); + selectPatientInsurerName(containerId: string, value: string) { + cy.get(`#${containerId}`).within(() => { + cy.typeAndSelectOption("#insurer", value); + }); } clickPatientInsuranceViewDetail() { @@ -49,24 +27,15 @@ class PatientInsurance { verifyPatientPolicyDetails( subscriberId: string, policyId: string, - insurerId: string, insurerName: string, - isHcxEnabled: string, ) { cy.get("[data-testid=patient-details]").then(($dashboard) => { cy.url().should("include", "/facility/"); expect($dashboard).to.contain(subscriberId); expect($dashboard).to.contain(policyId); - if (!isHcxEnabled) { - expect($dashboard).to.contain(insurerId); - expect($dashboard).to.contain(insurerName); - } + expect($dashboard).to.contain(insurerName); }); } - - selectHcxInsurer(insurer: string) { - cy.typeAndSelectOption("#insurer", insurer); - } } export default PatientInsurance; From 59d564211f4198a0f07936eeb961a80e7f8924f5 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 11 Nov 2024 02:37:33 +0530 Subject: [PATCH 5/8] modified payor name --- 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 f47b180a7f4..91810ffd273 100644 --- a/cypress/e2e/patient_spec/PatientRegistration.cy.ts +++ b/cypress/e2e/patient_spec/PatientRegistration.cy.ts @@ -61,7 +61,7 @@ describe("Patient Creation with consultation", () => { const patientOneSecondInsuranceId = "insurance-details-1"; const patientOneSecondSubscriberId = "member id 02"; const patientOneSecondPolicyId = "policy name 02"; - const patientOneSecondInsurerName = "Demo Payor"; + const patientOneSecondInsurerName = "Care Payor"; const patientTransferPhoneNumber = "9849511866"; const patientTransferFacility = "Dummy Shifting Center"; const patientTransferName = "Dummy Patient 10"; From 8c9bbc7a10e3f0e6d62abd0a5867065a3f0e337b Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 11 Nov 2024 02:49:22 +0530 Subject: [PATCH 6/8] fixed flaky test --- cypress/e2e/patient_spec/PatientHomepage.cy.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/cypress/e2e/patient_spec/PatientHomepage.cy.ts b/cypress/e2e/patient_spec/PatientHomepage.cy.ts index 32d869b8f50..ac605008d2e 100644 --- a/cypress/e2e/patient_spec/PatientHomepage.cy.ts +++ b/cypress/e2e/patient_spec/PatientHomepage.cy.ts @@ -128,7 +128,6 @@ describe("Patient Homepage present functionalities", () => { patientHome.selectPatientMedicoFilter(patientMedicoStatus); patientHome.clickPatientFilterApply(); cy.get("a[data-cy='patient']").should("contain.text", "Dummy Patient"); - patientHome.verifyTotalPatientCount("1"); // Verify the presence of badges patientHome.verifyGenderBadgeContent(patientGender); patientHome.verifyCategoryBadgeContent(patientCategory); From 4d5d3abc365f23dfe258be5d5d0e27de050eb1db Mon Sep 17 00:00:00 2001 From: Khavin Shankar Date: Mon, 11 Nov 2024 14:27:47 +0530 Subject: [PATCH 7/8] enable hcx for cypress only in the cypress github action --- .env | 3 +-- .github/workflows/cypress.yaml | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 612c234e535..b5db3d0088f 100644 --- a/.env +++ b/.env @@ -14,5 +14,4 @@ ESLINT_NO_DEV_ERRORS=true CARE_CDN_URL="https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com http://localhost:4566" REACT_ALLOWED_LOCALES="en,hi,ta,ml,mr,kn" -REACT_ENABLED_APPS="ohcnetwork/care_hcx_fe@main" -REACT_ENABLE_HCX=true \ No newline at end of file +REACT_ENABLED_APPS="" diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index 1104d7f480d..ecd06f922c0 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -18,6 +18,8 @@ jobs: containers: [1, 2, 3, 4] env: REACT_CARE_API_URL: http://localhost:9000 + REACT_ENABLED_APPS: "ohcnetwork/care_hcx_fe@main" + REACT_ENABLE_HCX: true steps: - name: Checkout 📥 uses: actions/checkout@v3 From 7a5f92af5bca180f67840e0da4fcf6b0692ca56e Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:52:48 +0530 Subject: [PATCH 8/8] fix the typo issues --- cypress/e2e/hcx_spec/HcxClaims.cy.ts | 2 +- cypress/pageobject/Hcx/HcxClaims.ts | 4 ++-- cypress/pageobject/Patient/PatientConsultation.ts | 2 +- src/components/Facility/ConsultationCard.tsx | 2 +- src/components/HCX/PolicyEligibilityCheck.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/hcx_spec/HcxClaims.cy.ts b/cypress/e2e/hcx_spec/HcxClaims.cy.ts index 7224be6b1f5..2c4a6b45df9 100644 --- a/cypress/e2e/hcx_spec/HcxClaims.cy.ts +++ b/cypress/e2e/hcx_spec/HcxClaims.cy.ts @@ -81,7 +81,7 @@ describe("HCX Claims configuration and approval workflow", () => { patientConsultationPage.clickManagePatientButton(); patientConsultationPage.clickClaimsButton(); hcxClaims.selectEligiblePolicy(patientInsurerName); - hcxClaims.verifyPolicyEligibity(); + hcxClaims.verifyPolicyEligibility(); cy.verifyNotification("Checking Policy Eligibility"); cy.closeNotification(); // Confirm that the eligibility check displays as successful diff --git a/cypress/pageobject/Hcx/HcxClaims.ts b/cypress/pageobject/Hcx/HcxClaims.ts index 93e62c639a2..9a915a05196 100644 --- a/cypress/pageobject/Hcx/HcxClaims.ts +++ b/cypress/pageobject/Hcx/HcxClaims.ts @@ -3,7 +3,7 @@ export class HcxClaims { cy.clickAndSelectOption("#select-insurance-policy", policy); } - verifyPolicyEligibity() { - cy.verifyAndClickElement("#check-eligibity", "Check Eligibility"); + verifyPolicyEligibility() { + cy.verifyAndClickElement("#check-eligibility", "Check Eligibility"); } } diff --git a/cypress/pageobject/Patient/PatientConsultation.ts b/cypress/pageobject/Patient/PatientConsultation.ts index 3386a48c360..6f4f994b395 100644 --- a/cypress/pageobject/Patient/PatientConsultation.ts +++ b/cypress/pageobject/Patient/PatientConsultation.ts @@ -115,7 +115,7 @@ export class PatientConsultationPage { clickViewConsultationButton() { cy.verifyAndClickElement( - "#view_consulation_updates", + "#view_consultation_updates", "View Consultation / Consultation Updates", ); } diff --git a/src/components/Facility/ConsultationCard.tsx b/src/components/Facility/ConsultationCard.tsx index 11fce3fbe28..213f306d730 100644 --- a/src/components/Facility/ConsultationCard.tsx +++ b/src/components/Facility/ConsultationCard.tsx @@ -169,7 +169,7 @@ export const ConsultationCard = (props: ConsultationProps) => {
navigate( diff --git a/src/components/HCX/PolicyEligibilityCheck.tsx b/src/components/HCX/PolicyEligibilityCheck.tsx index 6ba256220c7..4515819fc26 100644 --- a/src/components/HCX/PolicyEligibilityCheck.tsx +++ b/src/components/HCX/PolicyEligibilityCheck.tsx @@ -140,7 +140,7 @@ export default function HCXPolicyEligibilityCheck({ )} />