From a334be986386d8b121e5a8be5685253eca0c8dd2 Mon Sep 17 00:00:00 2001 From: Daniel Benton Date: Thu, 18 Jan 2024 17:53:40 +0000 Subject: [PATCH] MAP-573 Add typo fixes and missing question mark --- .../integration/reportPages/check-your-answers.cy.js | 2 +- .../reportPages/enter-use-of-force-details.cy.js | 6 +++--- .../pages/createReport/useOfForceDetailsPage.js | 4 ++-- server/views/formPages/incident/relocationAndInjuries.html | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/integration-tests/integration/reportPages/check-your-answers.cy.js b/integration-tests/integration/reportPages/check-your-answers.cy.js index 0edbb1de..8c96dace 100644 --- a/integration-tests/integration/reportPages/check-your-answers.cy.js +++ b/integration-tests/integration/reportPages/check-your-answers.cy.js @@ -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) diff --git a/integration-tests/integration/reportPages/enter-use-of-force-details.cy.js b/integration-tests/integration/reportPages/enter-use-of-force-details.cy.js index ab10ed2a..05dc650b 100644 --- a/integration-tests/integration/reportPages/enter-use-of-force-details.cy.js +++ b/integration-tests/integration/reportPages/enter-use-of-force-details.cy.js @@ -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') @@ -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') @@ -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') diff --git a/integration-tests/pages/createReport/useOfForceDetailsPage.js b/integration-tests/pages/createReport/useOfForceDetailsPage.js index 48670ac8..8006b975 100644 --- a/integration-tests/pages/createReport/useOfForceDetailsPage.js +++ b/integration-tests/pages/createReport/useOfForceDetailsPage.js @@ -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"]'), @@ -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') diff --git a/server/views/formPages/incident/relocationAndInjuries.html b/server/views/formPages/incident/relocationAndInjuries.html index dc0ec693..f57dc8b3 100644 --- a/server/views/formPages/incident/relocationAndInjuries.html +++ b/server/views/formPages/incident/relocationAndInjuries.html @@ -126,7 +126,7 @@

Injuries sustained and healthca
- Did a member of staff need medical attention at the time + Did a member of staff need medical attention at the time? Error: