diff --git a/cypress/pageobject/Patient/PatientCreation.ts b/cypress/pageobject/Patient/PatientCreation.ts index 54890e165d2..b31be1d2d31 100644 --- a/cypress/pageobject/Patient/PatientCreation.ts +++ b/cypress/pageobject/Patient/PatientCreation.ts @@ -56,8 +56,8 @@ export class PatientPage { cy.get("#date-input").click().type(dateOfBirth); } typePatientAge(age: string) { - cy.get("#select-menu").click(); - cy.get("#select-menu").contains("Age").click(); + cy.get("#age-input-type-selector").click(); + cy.get("#age-input-type-selector").contains("Age").click(); cy.get("button").contains("Confirm").click(); cy.get("#age-div").click().type(age); } diff --git a/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx b/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx index fdbf4846329..8fb6ce895db 100644 --- a/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx +++ b/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx @@ -10,7 +10,11 @@ import useVitalsAspectRatioConfig from "../../VitalsMonitor/useVitalsAspectRatio import { DISCHARGE_REASONS, SYMPTOM_CHOICES } from "../../../Common/constants"; import PrescriptionsTable from "../../Medicine/PrescriptionsTable"; import Chip from "../../../CAREUI/display/Chip"; -import { formatAge, formatDate, formatDateTime } from "../../../Utils/utils"; +import { + formatDate, + formatDateTime, + formatPatientAge, +} from "../../../Utils/utils"; import ReadMore from "../../Common/components/Readmore"; import DailyRoundsList from "../Consultations/DailyRoundsList"; import EventsList from "./Events/EventsList"; @@ -629,12 +633,7 @@ export const ConsultationUpdatesTab = (props: ConsultationTabProps) => {