-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAP-961 change baton and pava question wording
- Loading branch information
1 parent
707f18c
commit 1d1a37e
Showing
16 changed files
with
184 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,5 +134,52 @@ context('A reporter views their own report', () => { | |
|
||
const yourReportPage = YourReportPage.verifyOnPage() | ||
yourReportPage.location().contains('–') | ||
yourReportPage.batonDrawnAgainstPrisonerLabel().contains('Was a baton drawn against the prisoner?') | ||
yourReportPage.pavaDrawnAgainstPrisonerLabel().contains('Was PAVA drawn against the prisoner?') | ||
}) | ||
|
||
it('A user can view their own report with the old version of the Baton and PAVA questions', () => { | ||
cy.task('stubLocationNotFound', '357591') | ||
|
||
cy.login() | ||
|
||
expectedPayload.useOfForceDetails.batonDrawnAgainstPrisoner = undefined | ||
expectedPayload.useOfForceDetails.pavaDrawnAgainstPrisoner = undefined | ||
expectedPayload.useOfForceDetails.batonDrawn = true | ||
expectedPayload.useOfForceDetails.pavaDrawn = true | ||
|
||
cy.task('seedReport', { | ||
status: ReportStatus.SUBMITTED, | ||
submittedDate: '2019-09-04 11:27:52', | ||
involvedStaff: [ | ||
{ | ||
username: 'MR_ZAGATO', | ||
name: 'MR_ZAGATO name', | ||
email: '[email protected]', | ||
}, | ||
{ | ||
username: 'MRS_JONES', | ||
name: 'MRS_JONES name', | ||
email: '[email protected]', | ||
}, | ||
{ | ||
username: 'TEST_USER', | ||
name: 'TEST_USER name', | ||
email: '[email protected]', | ||
}, | ||
], | ||
payload: expectedPayload, | ||
}) | ||
|
||
const yourStatementsPage = YourStatementsPage.goTo() | ||
yourStatementsPage.yourReportsTab().click() | ||
|
||
const yourReportsPage = YourReportsPage.verifyOnPage() | ||
yourReportsPage.reports(0).action().click() | ||
|
||
const yourReportPage = YourReportPage.verifyOnPage() | ||
yourReportPage.location().contains('–') | ||
yourReportPage.batonDrawnLabel().contains('Was a baton drawn by anyone during this incident?') | ||
yourReportPage.pavaDrawnLabel().contains('Was PAVA drawn by anyone during this incident?') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.