diff --git a/cypress/e2e/patient_spec/patient_consultation.cy.ts b/cypress/e2e/patient_spec/patient_consultation.cy.ts index eef98a5e3ce..9c9256e11ef 100644 --- a/cypress/e2e/patient_spec/patient_consultation.cy.ts +++ b/cypress/e2e/patient_spec/patient_consultation.cy.ts @@ -95,6 +95,7 @@ describe("Patient Consultation in multiple combination", () => { cy.submitButton("Create Consultation"); // the above submit should fail as IP number is missing patientConsultationPage.typePatientNumber(patientIpNumber); + patientConsultationPage.selectBed("Dummy Bed 1"); cy.submitButton("Create Consultation"); cy.verifyNotification("Consultation created successfully"); // Below code for the prescription module only present while creating a new consultation diff --git a/cypress/pageobject/Patient/PatientConsultation.ts b/cypress/pageobject/Patient/PatientConsultation.ts index 31b1fd6cb68..dc5d9e2b2bb 100644 --- a/cypress/pageobject/Patient/PatientConsultation.ts +++ b/cypress/pageobject/Patient/PatientConsultation.ts @@ -28,6 +28,10 @@ export class PatientConsultationPage { cy.searchAndSelectOption("#referred_to", referance); } + selectBed(bedNo: string) { + cy.searchAndSelectOption("#bed", bedNo); + } + selectPatientWard(ward: string) { cy.searchAndSelectOption("#transferred_from_location", ward); } diff --git a/src/Components/Common/BedSelect.tsx b/src/Components/Common/BedSelect.tsx index 5c31055a3a4..7ed741061ee 100644 --- a/src/Components/Common/BedSelect.tsx +++ b/src/Components/Common/BedSelect.tsx @@ -65,6 +65,7 @@ export const BedSelect = (props: BedSelectProps) => { return (