Skip to content

Commit

Permalink
MIC-734: Investigation confirmation screens (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackReeveMoJ authored Nov 5, 2024
1 parent 988cbf9 commit c801b10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ context('test /record-investigation/confirmation', () => {

const validatePageContents = () => {
cy.findByRole('link', { name: /Digital Prison Services/ }).should('be.visible')
cy.findByRole('link', { name: /CSIP/ }).should('be.visible')
cy.get('.csip-breadcrumbs__breadcrumbs').findByRole('link', { name: /CSIP/ }).should('be.visible')

cy.findByText('CSIP investigation recorded').should('be.visible')
cy.findByText('We’ve updated the status of the referral to ‘awaiting decision’.').should('be.visible')
cy.findByText('Status: Awaiting decision').should('be.visible')

cy.findByRole('heading', { name: /What needs to happen next/ }).should('be.visible')
cy.findByText(
Expand All @@ -40,5 +40,14 @@ context('test /record-investigation/confirmation', () => {
cy.findByText(
'If the Custodial Manager is not available then another appropriate person can do this, such as the Residential Governor or a Safer Custody team member.',
).should('be.visible')

cy.findByRole('link', { name: 'View CSIP details for Testname User' })
.should('be.visible')
.and('have.attr', 'href')
.and('match', /\/manage-csips\?query=A1111AA$/)
cy.findByRole('link', { name: 'View all CSIPs for Leeds (HMP)' })
.should('be.visible')
.and('have.attr', 'href')
.and('match', /\/manage-csips\?clear=true$/)
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

{% block innerContent %}
{{ govukPanel({
titleText: "CSIP investigation recorded"
titleText: "CSIP investigation recorded",
html: "Status: Awaiting decision"
}) }}
<p class="govuk-body">We’ve updated the status of the referral to ‘awaiting decision’.</p>

<h1 class="govuk-heading-m">What needs to happen next</h1>
<p class="govuk-body">The Custodial Manager should assess the findings of the investigation and make a decision about whether {{ prisoner | firstNameSpaceLastName }} needs to be placed on a CSIP.</p>
<p class="govuk-body">If the Custodial Manager is not available then another appropriate person can do this, such as the Residential Governor or a Safer Custody team member.</p>

{% include "../../base/components/view-other-csips.njk" %}
{% endblock %}

0 comments on commit c801b10

Please sign in to comment.