Skip to content

Commit

Permalink
MAP-573 Add typo fixes and missing question mark
Browse files Browse the repository at this point in the history
  • Loading branch information
danbenton-mojdt committed Jan 18, 2024
1 parent 84766ed commit a334be9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ context('Check your answers page', () => {
selectUofReasonsPage.checkReason('FIGHT_BETWEEN_PRISONERS')
selectUofReasonsPage.clickSave()
const useOfForceDetailsPage = UseOfForceDetailsPage.verifyOnPage()
useOfForceDetailsPage.postiveCommunication().check('false')
useOfForceDetailsPage.positiveCommunication().check('false')
operation(useOfForceDetailsPage)
const revisitedAnswersPage = CheckAnswersPage.verifyOnPage()
revisitedAnswersPage.positiveCommunicationUsed().contains(finalValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ context('Enter use of force details page', () => {
selectUofReasonsPage.clickSaveAndContinue()

const useOfForceDetailsPage = UseOfForceDetailsPage.verifyOnPage()
useOfForceDetailsPage.postiveCommunication().check('true')
useOfForceDetailsPage.positiveCommunication().check('true')
useOfForceDetailsPage.personalProtectionTechniques().check('true')
useOfForceDetailsPage.batonDrawn().check('true')
useOfForceDetailsPage.batonUsed().check('true')
Expand Down Expand Up @@ -95,7 +95,7 @@ context('Enter use of force details page', () => {
cy.go('back')

const useOfForceDetailsPage = UseOfForceDetailsPage.verifyOnPage()
useOfForceDetailsPage.postiveCommunication().should('have.value', 'true')
useOfForceDetailsPage.positiveCommunication().should('have.value', 'true')
useOfForceDetailsPage.personalProtectionTechniques().should('have.value', 'true')
useOfForceDetailsPage.batonDrawn().should('have.value', 'true')
useOfForceDetailsPage.batonUsed().should('have.value', 'true')
Expand All @@ -122,7 +122,7 @@ context('Enter use of force details page', () => {
selectUofReasonsPage.clickSaveAndContinue()

const useOfForceDetailsPage = UseOfForceDetailsPage.verifyOnPage()
useOfForceDetailsPage.postiveCommunication().check('true')
useOfForceDetailsPage.positiveCommunication().check('true')
useOfForceDetailsPage.personalProtectionTechniques().check('true')
useOfForceDetailsPage.pavaDrawn().check('true')
useOfForceDetailsPage.pavaUsed().check('true')
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/pages/createReport/useOfForceDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import RelocationAndInjuriesPage from './relocationAndInjuriesPage'

const useOfForceDetailsPage = () =>
page('Use of force details', {
postiveCommunication: () => cy.get('[name="positiveCommunication"]'),
positiveCommunication: () => cy.get('[name="positiveCommunication"]'),
personalProtectionTechniques: () => cy.get('[name="personalProtectionTechniques"]'),
batonDrawn: () => cy.get('[name="batonDrawn"]'),
batonUsed: () => cy.get('[name="batonUsed"]'),
Expand Down Expand Up @@ -44,7 +44,7 @@ const useOfForceDetailsPage = () =>
},

fillForm() {
this.postiveCommunication().check('true')
this.positiveCommunication().check('true')
this.personalProtectionTechniques().check('true')
this.batonDrawn().check('true')
this.batonUsed().check('true')
Expand Down
2 changes: 1 addition & 1 deletion server/views/formPages/incident/relocationAndInjuries.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h2 class="govuk-heading-l govuk-!-margin-top-9">Injuries sustained and healthca

<fieldset class="govuk-fieldset">
<legend class="govuk-fieldset__legend ">
Did a member of staff need medical attention at the time
Did a member of staff need medical attention at the time?
</legend>
<span class="govuk-error-message">
<span class="govuk-visually-hidden">Error:</span>
Expand Down

0 comments on commit a334be9

Please sign in to comment.