Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAP-575 Change final lock techniques to wrist rotation/flexion #668

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration-tests/pages/sections/reportDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions server/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
4 changes: 2 additions & 2 deletions server/services/reportSummary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"', () => {
Expand Down
Loading