Skip to content

Commit

Permalink
Merge branch 'develop' into cache-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Nov 24, 2023
2 parents e63736b + b9c7021 commit 2b7524e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/pageobject/Patient/PatientConsultation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ export class PatientConsultationPage {
}

addDoctorsNotes(notes: string) {
cy.get("#expand_doctor_notes").click();
cy.get("#doctor_notes_textarea").type(notes);
}

postDoctorNotes() {
cy.intercept("POST", "**/api/v1/patient/*/notes").as("postDoctorNotes");
cy.get("#submit").contains("Post Your Note").click();
cy.get("#add_doctor_note_button").click();
cy.wait("@postDoctorNotes").its("response.statusCode").should("eq", 201);
}

Expand Down
3 changes: 3 additions & 0 deletions src/Components/Facility/PatientNotesSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
</Link>
)}
<div
id="expand_doctor_notes"
className={classNames(
"flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-primary-800 text-gray-100 text-opacity-70 hover:bg-primary-700 hover:text-opacity-100",
show && "rotate-180"
Expand Down Expand Up @@ -129,6 +130,7 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
/>
<div className="relative mx-4 flex items-center">
<TextFormField
id="doctor_notes_textarea"
name="note"
value={noteField}
onChange={(e) => setNoteField(e.value)}
Expand All @@ -139,6 +141,7 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
disabled={!patientActive}
/>
<ButtonV2
id="add_doctor_note_button"
onClick={onAddNote}
border={false}
className="absolute right-2"
Expand Down

0 comments on commit 2b7524e

Please sign in to comment.