Skip to content

Commit

Permalink
Removed hyphens and updated tests (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-nimbleapproach authored Jan 27, 2025
1 parent f2af445 commit 7809ff8
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 @@ -35,8 +35,8 @@ describe("Testing Final finance plan Task", () => {
.schoolNameIs(project.schoolName)
.titleIs("Final finance plan")
.inOrder()
.summaryShows("Expected date that the Grade 6 will sign-off the final plan").IsEmpty().HasChangeLink()
.summaryShows("Actual date the Grade 6 signed-off the final plan").IsEmpty().HasChangeLink()
.summaryShows("Expected date that the Grade 6 will sign off the final plan").IsEmpty().HasChangeLink()
.summaryShows("Actual date the Grade 6 signed off the final plan").IsEmpty().HasChangeLink()
.summaryShows("Confirmed that the trust has provided the final plan").IsEmpty().HasChangeLink()
.summaryShows("Sent the final plan to the Revenue Funding mailbox").IsEmpty().HasChangeLink()
.summaryShows("Added any underwritten places to the finance plan").IsEmpty().HasChangeLink()
Expand Down Expand Up @@ -64,7 +64,7 @@ describe("Testing Final finance plan Task", () => {

cy.executeAccessibilityTests({ "aria-allowed-attr": { enabled: false } });

cy.log("Expected date that the Grade 6 will sign-off the final plan Validation")
cy.log("Expected date that the Grade 6 will sign off the final plan Validation")

finalFinancePlanEditPage
.withExpectedDateGrade6WillSignOffFinalPlan("2","ds","2050")
Expand All @@ -77,7 +77,7 @@ describe("Testing Final finance plan Task", () => {
.clickContinue()
.errorExpectedDateGrade6WillSignOffFinalPlan().showsError("Year must be between 2000 and 2050")

cy.log("Date the Grade 6 signed-off the final plan Validation")
cy.log("Date the Grade 6 signed off the final plan Validation")

finalFinancePlanEditPage
.withGrade6SignedOffFinalPlanDate("2","ds","2050")
Expand All @@ -103,8 +103,8 @@ describe("Testing Final finance plan Task", () => {
.schoolNameIs(project.schoolName)
.titleIs("Final finance plan")
.inOrder()
.summaryShows("Expected date that the Grade 6 will sign-off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Actual date the Grade 6 signed-off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Expected date that the Grade 6 will sign off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Actual date the Grade 6 signed off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Confirmed that the trust has provided the final plan").HasValue("Yes").HasChangeLink()
.summaryShows("Sent the final plan to the Revenue Funding mailbox").HasValue("Yes").HasChangeLink()
.summaryShows("Added any underwritten places to the finance plan").HasValue("Yes").HasChangeLink()
Expand All @@ -125,8 +125,8 @@ describe("Testing Final finance plan Task", () => {
.schoolNameIs(project.schoolName)
.titleIs("Final finance plan")
.inOrder()
.summaryShows("Expected date that the Grade 6 will sign-off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Actual date the Grade 6 signed-off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Expected date that the Grade 6 will sign off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Actual date the Grade 6 signed off the final plan").HasValue("2 February 2050").HasChangeLink()
.summaryShows("Confirmed that the trust has provided the final plan").IsEmpty().HasChangeLink()
.summaryShows("Sent the final plan to the Revenue Funding mailbox").IsEmpty().HasChangeLink()
.summaryShows("Added any underwritten places to the finance plan").IsEmpty().HasChangeLink()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<div class="govuk-grid-column-two-thirds">

<form method="post">
<govuk-date-input id="expected-date-grade6-will-signoff-final-plan" name="expected-date-grade6-will-signoff-final-plan" asp-for="@Model.ExpectedDateGrade6WillSignOffFinalPlan" label="Expected date that the Grade 6 will sign-off the final plan" hint="For example, 27 3 2021" />
<govuk-date-input id="grade-6-signed-off-final-plan-date" name="grade-6-signed-off-final-plan-date" asp-for="@Model.Grade6SignedOffFinalPlanDate" label="Actual date that the Grade 6 signed-off the final plan" hint="For example, 27 3 2021" />
<govuk-date-input id="expected-date-grade6-will-signoff-final-plan" name="expected-date-grade6-will-signoff-final-plan" asp-for="@Model.ExpectedDateGrade6WillSignOffFinalPlan" label="Expected date that the Grade 6 will sign off the final plan" hint="For example, 27 3 2021" />
<govuk-date-input id="grade-6-signed-off-final-plan-date" name="grade-6-signed-off-final-plan-date" asp-for="@Model.Grade6SignedOffFinalPlanDate" label="Actual date that the Grade 6 signed off the final plan" hint="For example, 27 3 2021" />
<govuk-checkbox-input id="confirmed-trust-has-provided-final-plan" name="confirmed-trust-has-provided-final-plan" asp-for="@Model.ConfirmedTrustHasProvidedFinalPlan" label="Confirmed that the trust has provided the final plan"/>
<govuk-checkbox-input id="sent-final-plan-to-revenue-funding-mailbox" name="sent-final-plan-to-revenue-funding-mailbox" asp-for="@Model.SentFinalPlanToRevenueFundingMailbox" label="Sent the final plan to the Revenue Funding mailbox"/>
<govuk-checkbox-input id="added-any-underwritten-places-to-the-finance-plan" name="added-any-underwritten-places-to-the-finance-plan" asp-for="@Model.AddedAnyUnderwrittenPlacesToFinalPlan" label="Added any underwritten places to the finance plan" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
</h1>
<govuk-summary-list>

<govuk-summary-item label="Expected date that the Grade 6 will sign-off the final plan" asp-for="@finalFinancePlan.ExpectedDateGrade6WillSignOffTheFinalPlan" href="@editlink" />
<govuk-summary-item label="Actual date the Grade 6 signed-off the final plan" asp-for="@finalFinancePlan.Grade6SignedOffFinalPlanDate" href="@editlink" />
<govuk-summary-item label="Expected date that the Grade 6 will sign off the final plan" asp-for="@finalFinancePlan.ExpectedDateGrade6WillSignOffTheFinalPlan" href="@editlink" />
<govuk-summary-item label="Actual date the Grade 6 signed off the final plan" asp-for="@finalFinancePlan.Grade6SignedOffFinalPlanDate" href="@editlink" />
<govuk-summary-item label="Confirmed that the trust has provided the final plan" asp-for="@finalFinancePlan.ConfirmedTrustHasProvidedFinalPlan" href="@editlink" />
<govuk-summary-item label="Sent the final plan to the Revenue Funding mailbox" asp-for="@finalFinancePlan.SentFinalPlanToRevenueFundingMailbox" href="@editlink" />
<govuk-summary-item label="Added any underwritten places to the finance plan" asp-for="@finalFinancePlan.AddedAnyUnderwrittenPlacesToFinalPlan" href="@editlink" />
Expand Down

0 comments on commit 7809ff8

Please sign in to comment.