diff --git a/integration-tests/pages/sections/reportDetails.js b/integration-tests/pages/sections/reportDetails.js index b4b20100..d53b7f94 100644 --- a/integration-tests/pages/sections/reportDetails.js +++ b/integration-tests/pages/sections/reportDetails.js @@ -65,7 +65,7 @@ module.exports = { cy.get('[data-qa="restraintUsed"]').contains('Yes - standing, on back (supine), on front (prone), kneeling') handcuffsApplied().contains('Yes') painInducingTechniques().contains('Yes') - cy.get('[data-qa="painInducingTechniques"]').contains('Yes - final lock flexion, thumb lock') + cy.get('[data-qa="painInducingTechniques"]').contains('Yes - wrist flexion, thumb lock') cy.get('[data-qa="prisonerRelocation"]').contains('Segregation unit') prisonerCompliant().contains('Yes') diff --git a/server/config/types.ts b/server/config/types.ts index 4e12c941..f80e79bd 100644 --- a/server/config/types.ts +++ b/server/config/types.ts @@ -28,8 +28,8 @@ export const ControlAndRestraintPosition = toEnum({ }) export const PainInducingTechniquesUsed = toEnum({ - FINAL_LOCK_FLEXION: { value: 'FINAL_LOCK_FLEXION', label: 'Final lock flexion' }, - FINAL_LOCK_ROTATION: { value: 'FINAL_LOCK_ROTATION', label: 'Final lock rotation' }, + FINAL_LOCK_FLEXION: { value: 'FINAL_LOCK_FLEXION', label: 'Wrist flexion' }, + FINAL_LOCK_ROTATION: { value: 'FINAL_LOCK_ROTATION', label: 'Wrist rotation' }, MANDIBULAR_ANGLE_TECHNIQUE: { value: 'MANDIBULAR_ANGLE_TECHNIQUE', label: 'Mandibular angle technique' }, SHOULDER_CONTROL: { value: 'SHOULDER_CONTROL', label: 'Shoulder control' }, THROUGH_RIGID_BAR_CUFFS: { value: 'THROUGH_RIGID_BAR_CUFFS', label: 'Through rigid bar cuffs' }, diff --git a/server/services/reportSummary.test.ts b/server/services/reportSummary.test.ts index 4a71c66a..d2dcb584 100755 --- a/server/services/reportSummary.test.ts +++ b/server/services/reportSummary.test.ts @@ -29,14 +29,14 @@ describe('reportSummary', () => { form.useOfForceDetails.painInducingTechniques = true form.useOfForceDetails.painInducingTechniquesUsed = ['FINAL_LOCK_FLEXION'] const result = reportSummary(form, offenderDetail, prison, locationDescription, involvedStaff, incidentDate) - expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Final lock flexion') + expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Wrist flexion') }) it('should return 2 techniques used', () => { form.useOfForceDetails.painInducingTechniques = true form.useOfForceDetails.painInducingTechniquesUsed = ['FINAL_LOCK_FLEXION', 'THUMB_LOCK'] const result = reportSummary(form, offenderDetail, prison, locationDescription, involvedStaff, incidentDate) - expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Final lock flexion, Thumb lock') + expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Wrist flexion, Thumb lock') }) it('should return "No"', () => {