diff --git a/.env.example b/.env.example index fd014abeab..77b8f0585b 100644 --- a/.env.example +++ b/.env.example @@ -1 +1 @@ -REACT_APP_HOSPITALRUN_API=http://localhost:5984 +REACT_APP_HOSPITALRUN_API=http://localhost:5984 \ No newline at end of file diff --git a/src/__tests__/imagings/requests/NewImagingRequest.test.tsx b/src/__tests__/imagings/requests/NewImagingRequest.test.tsx index b5abe42662..256d907faa 100644 --- a/src/__tests__/imagings/requests/NewImagingRequest.test.tsx +++ b/src/__tests__/imagings/requests/NewImagingRequest.test.tsx @@ -131,7 +131,7 @@ describe('New Imaging Request', () => { const wrapper = await setup() const saveButton = wrapper.find(Button).at(0) expect(saveButton).toBeDefined() - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('imagings.requests.create') }) it('should render a cancel button', async () => { @@ -205,7 +205,7 @@ describe('New Imaging Request', () => { const saveButton = wrapper.find(Button).at(0) const onClick = saveButton.prop('onClick') as any - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('imagings.requests.create') await act(async () => { await onClick() }) diff --git a/src/__tests__/labs/ViewLab.test.tsx b/src/__tests__/labs/ViewLab.test.tsx index 42b9b1be3b..78f09fbc10 100644 --- a/src/__tests__/labs/ViewLab.test.tsx +++ b/src/__tests__/labs/ViewLab.test.tsx @@ -234,7 +234,7 @@ describe('View Lab', () => { ]) const buttons = wrapper.find(Button) - expect(buttons.at(0).text().trim()).toEqual('actions.update') + expect(buttons.at(0).text().trim()).toEqual('labs.requests.update') expect(buttons.at(1).text().trim()).toEqual('labs.requests.complete') diff --git a/src/__tests__/labs/requests/NewLabRequest.test.tsx b/src/__tests__/labs/requests/NewLabRequest.test.tsx index b7a72382dd..590678989d 100644 --- a/src/__tests__/labs/requests/NewLabRequest.test.tsx +++ b/src/__tests__/labs/requests/NewLabRequest.test.tsx @@ -104,7 +104,7 @@ describe('New Lab Request', () => { const { wrapper } = await setup() const saveButton = wrapper.find(Button).at(0) expect(saveButton).toBeDefined() - expect(saveButton.text().trim()).toEqual('labs.requests.save') + expect(saveButton.text().trim()).toEqual('labs.requests.new') }) it('should render a cancel button', async () => { diff --git a/src/__tests__/medications/ViewMedication.test.tsx b/src/__tests__/medications/ViewMedication.test.tsx index 65ccdf8bd5..2b2e1892c4 100644 --- a/src/__tests__/medications/ViewMedication.test.tsx +++ b/src/__tests__/medications/ViewMedication.test.tsx @@ -167,7 +167,7 @@ describe('View Medication', () => { ]) const buttons = wrapper.find(Button) - expect(buttons.at(0).text().trim()).toEqual('actions.update') + expect(buttons.at(0).text().trim()).toEqual('medications.requests.update') expect(buttons.at(1).text().trim()).toEqual('medications.requests.cancel') }) diff --git a/src/__tests__/medications/requests/NewMedicationRequest.test.tsx b/src/__tests__/medications/requests/NewMedicationRequest.test.tsx index 17daab24ab..fcf251a6fc 100644 --- a/src/__tests__/medications/requests/NewMedicationRequest.test.tsx +++ b/src/__tests__/medications/requests/NewMedicationRequest.test.tsx @@ -88,7 +88,7 @@ describe('New Medication Request', () => { const { wrapper } = await setup() const saveButton = wrapper.find(Button).at(0) expect(saveButton).toBeDefined() - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('medications.requests.new') }) it('should render a cancel button', async () => { diff --git a/src/__tests__/patients/edit/EditPatient.test.tsx b/src/__tests__/patients/edit/EditPatient.test.tsx index d7d12f0b0a..1e7d562adb 100644 --- a/src/__tests__/patients/edit/EditPatient.test.tsx +++ b/src/__tests__/patients/edit/EditPatient.test.tsx @@ -106,7 +106,7 @@ describe('Edit Patient', () => { const saveButton = wrapper.find('.btn-save').at(0) const onClick = saveButton.prop('onClick') as any - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('patients.updatePatient') await act(async () => { await onClick() diff --git a/src/__tests__/patients/new/NewPatient.test.tsx b/src/__tests__/patients/new/NewPatient.test.tsx index 44f21a6a76..943253d0d7 100644 --- a/src/__tests__/patients/new/NewPatient.test.tsx +++ b/src/__tests__/patients/new/NewPatient.test.tsx @@ -93,7 +93,7 @@ describe('New Patient', () => { const saveButton = wrapper.find('.btn-save').at(0) const onClick = saveButton.prop('onClick') as any - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('patients.createPatient') await act(async () => { await onClick() @@ -112,7 +112,7 @@ describe('New Patient', () => { const saveButton = wrapper.find('.btn-save').at(0) const onClick = saveButton.prop('onClick') as any - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('patients.createPatient') act(() => { onClick() @@ -139,7 +139,7 @@ describe('New Patient', () => { const saveButton = wrapper.find('.btn-save').at(0) const onClick = saveButton.prop('onClick') as any - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('patients.createPatient') await act(async () => { await onClick() diff --git a/src/__tests__/scheduling/appointments/edit/EditAppointment.test.tsx b/src/__tests__/scheduling/appointments/edit/EditAppointment.test.tsx index f50093c281..43087ee28d 100644 --- a/src/__tests__/scheduling/appointments/edit/EditAppointment.test.tsx +++ b/src/__tests__/scheduling/appointments/edit/EditAppointment.test.tsx @@ -108,7 +108,7 @@ describe('Edit Appointment', () => { const saveButton = wrapper.find(Button).at(0) const onClick = saveButton.prop('onClick') as any - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('scheduling.appointments.updateAppointment') await act(async () => { await onClick() diff --git a/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx b/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx index bbfabb1374..97740969de 100644 --- a/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx +++ b/src/__tests__/scheduling/appointments/new/NewAppointment.test.tsx @@ -109,7 +109,7 @@ describe('New Appointment', () => { wrapper.update() const saveButton = wrapper.find(Button).at(0) - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('scheduling.appointments.createAppointment') const onClick = saveButton.prop('onClick') as any await act(async () => { @@ -151,9 +151,8 @@ describe('New Appointment', () => { }) wrapper.update() - const saveButton = wrapper.find(Button).at(0) - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('scheduling.appointments.createAppointment') const onClick = saveButton.prop('onClick') as any await act(async () => { @@ -236,9 +235,8 @@ describe('New Appointment', () => { }) wrapper.update() - const saveButton = wrapper.find(Button).at(0) - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('scheduling.appointments.createAppointment') const onClick = saveButton.prop('onClick') as any await act(async () => { @@ -274,7 +272,7 @@ describe('New Appointment', () => { }) wrapper.update() const saveButton = wrapper.find(Button).at(0) - expect(saveButton.text().trim()).toEqual('actions.save') + expect(saveButton.text().trim()).toEqual('scheduling.appointments.createAppointment') const onClick = saveButton.prop('onClick') as any await act(async () => { diff --git a/src/imagings/requests/NewImagingRequest.tsx b/src/imagings/requests/NewImagingRequest.tsx index 7fad9ace49..1e3582de53 100644 --- a/src/imagings/requests/NewImagingRequest.tsx +++ b/src/imagings/requests/NewImagingRequest.tsx @@ -201,7 +201,7 @@ const NewImagingRequest = () => {
, ) diff --git a/src/labs/requests/NewLabRequest.tsx b/src/labs/requests/NewLabRequest.tsx index 5543f4395b..9482592378 100644 --- a/src/labs/requests/NewLabRequest.tsx +++ b/src/labs/requests/NewLabRequest.tsx @@ -173,9 +173,8 @@ const NewLabRequest = () => {
- diff --git a/src/medications/ViewMedication.tsx b/src/medications/ViewMedication.tsx index c54b9a2c1c..d22f4daf69 100644 --- a/src/medications/ViewMedication.tsx +++ b/src/medications/ViewMedication.tsx @@ -126,7 +126,7 @@ const ViewMedication = () => { buttons.push( , ) diff --git a/src/medications/requests/NewMedicationRequest.tsx b/src/medications/requests/NewMedicationRequest.tsx index 8ca68f1cfc..44d3e07438 100644 --- a/src/medications/requests/NewMedicationRequest.tsx +++ b/src/medications/requests/NewMedicationRequest.tsx @@ -227,7 +227,7 @@ const NewMedicationRequest = () => {