Skip to content

Commit

Permalink
Merge pull request #830 from DFE-Digital/feature/147093
Browse files Browse the repository at this point in the history
Due dilligence checks fix copy
  • Loading branch information
sukhybhullar-nimble authored Sep 17, 2024
2 parents 3c67581 + defffe4 commit 93636c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Testing the due diligence checks task", () => {
beforeEach(() => {
cy.login();

project = RequestBuilder.createProjectDetails();
project = RequestBuilder.createProjectDetailsNonPresumption();

projectApi
.post({
Expand Down Expand Up @@ -66,10 +66,10 @@ describe("Testing the due diligence checks task", () => {
.inOrder()
.summaryShows("Received Chair of Trustee's DBS countersigned certificate").HasValue("Yes").HasChangeLink()
.summaryShows("Non-specialist checks done on all trust members and trustees in last 2 years").HasValue("Yes").HasChangeLink()
.summaryShows("Requested counter terrorism checks").HasValue("No").HasChangeLink()
.summaryShows("Date when all check were completed").HasValue("30 January 2050").HasChangeLink()
.summaryShows("Requested counter extremism checks").HasValue("No").HasChangeLink()
.summaryShows("Date when all checks were completed").HasValue("30 January 2050").HasChangeLink()
.summaryShows("Saved the non-specialist checks spreadsheet in Workplaces folder").HasValue("Yes").HasChangeLink()
.summaryShows("Deleted copy of any Chair's DBS certificate").HasValue("Yes").HasChangeLink()
.summaryShows("Deleted any copies of Chair's DBS certificate").HasValue("Yes").HasChangeLink()
.summaryShows("Deleted emails containing suitability and declaration forms").HasValue("Yes").HasChangeLink()
.isNotMarkedAsComplete()
.clickConfirmAndContinue();
Expand Down Expand Up @@ -104,10 +104,10 @@ function checkSummaryPageHasEmptyValuesAndNotComplete(schoolName: string) {
.inOrder()
.summaryShows("Received Chair of Trustee's DBS countersigned certificate").IsEmpty().HasChangeLink()
.summaryShows("Non-specialist checks done on all trust members and trustees in last 2 years").IsEmpty().HasChangeLink()
.summaryShows("Requested counter terrorism checks").IsEmpty().HasChangeLink()
.summaryShows("Date when all check were completed").IsEmpty().HasChangeLink()
.summaryShows("Requested counter extremism checks").IsEmpty().HasChangeLink()
.summaryShows("Date when all checks were completed").IsEmpty().HasChangeLink()
.summaryShows("Saved the non-specialist checks spreadsheet in Workplaces folder").IsEmpty().HasChangeLink()
.summaryShows("Deleted copy of any Chair's DBS certificate").IsEmpty().HasChangeLink()
.summaryShows("Deleted any copies of Chair's DBS certificate").IsEmpty().HasChangeLink()
.summaryShows("Deleted emails containing suitability and declaration forms").IsEmpty().HasChangeLink()
.isNotMarkedAsComplete();
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name="requested-counter-extremism-checks"
label="Requested counter extremism checks"
asp-for="@Model.RequestedCounterExtremismChecks"
leading-paragraph="You only need to do this if the non-specialist checks have revealed any concerns." />
leading-paragraph="You only need to do this if the non-specialist checks revealed any concerns." />

<govuk-date-input id="date-when-all-checks-completed" name="date-when-all-checks-completed" asp-for="@Model.DateWhenAllChecksWereCompleted" label="Date when all checks were completed" hint="For example, 27 3 2024" width="4" bold-label="true" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
var editLink = string.Format(RouteConstants.EditDueDiligenceChecks, Model.ProjectId);
var dueDiligenceChecks = Model.Project.DueDiligenceChecks;

var requestedCounterTerrorismChecksVal = dueDiligenceChecks.RequestedCounterExtremismChecks switch
var requestedCounterExtremismChecksVal = dueDiligenceChecks.RequestedCounterExtremismChecks switch
{
null => null,
true => "Yes",
Expand All @@ -33,10 +33,10 @@
<govuk-summary-list>
<govuk-summary-item label="Received Chair of Trustee's DBS countersigned certificate" asp-for="@dueDiligenceChecks.ReceivedChairOfTrusteesCountersignedCertificate" href="@editLink"/>
<govuk-summary-item label="Non-specialist checks done on all trust members and trustees in last 2 years" asp-for="@dueDiligenceChecks.NonSpecialistChecksDoneOnAllTrustMembersAndTrustees" href="@editLink"/>
<govuk-summary-item label="Requested counter terrorism checks" asp-for="@requestedCounterTerrorismChecksVal" href="@editLink"/>
<govuk-summary-item label="Date when all check were completed" asp-for="@dueDiligenceChecks.DateWhenAllChecksWereCompleted" href="@editLink"/>
<govuk-summary-item label="Requested counter extremism checks" asp-for="@requestedCounterExtremismChecksVal" href="@editLink" />
<govuk-summary-item label="Date when all checks were completed" asp-for="@dueDiligenceChecks.DateWhenAllChecksWereCompleted" href="@editLink"/>
<govuk-summary-item label="Saved the non-specialist checks spreadsheet in Workplaces folder" asp-for="@dueDiligenceChecks.SavedNonSpecialistChecksSpreadsheetInWorkplaces" href="@editLink"/>
<govuk-summary-item label="Deleted copy of any Chair's DBS certificate" asp-for="@dueDiligenceChecks.DeletedAnyCopiesOfChairsDBSCertificate" href="@editLink"/>
<govuk-summary-item label="Deleted any copies of Chair's DBS certificate" asp-for="@dueDiligenceChecks.DeletedAnyCopiesOfChairsDBSCertificate" href="@editLink"/>
<govuk-summary-item label="Deleted emails containing suitability and declaration forms" asp-for="@dueDiligenceChecks.DeletedEmailsContainingSuitabilityAndDeclarationForms" href="@editLink"/>
</govuk-summary-list>

Expand Down

0 comments on commit 93636c5

Please sign in to comment.