Skip to content

Commit

Permalink
Merge pull request #1071 from DFE-Digital/feature/decision-small-cont…
Browse files Browse the repository at this point in the history
…ent-change

change date of decision text
  • Loading branch information
elielijah321 authored May 30, 2024
2 parents 800e330 + 7186064 commit bf324d7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public async Task Should_go_back_to_any_conditions_for_the_accepted_journey()

await ProgressToDecisionDateStep(project);

PageHeading.Should().Be("Date conversion was approved");
PageHeading.Should().Be("Date of decision");

await NavigateAsync("Back");

Expand All @@ -130,7 +130,7 @@ public async Task Should_go_back_to_declined_reasons_for_the_declined_journey()
await wizard.SetDecisionMakerName("Tester");
await wizard.SetDeclinedReasonsAndContinue(Tuple.Create(AdvisoryBoardDeclinedReasons.Finance, "Finance reasons"));

PageHeading.Should().Be("Date conversion was declined");
PageHeading.Should().Be("Date of decision");

await NavigateAsync("Back");

Expand All @@ -154,15 +154,15 @@ public async Task Should_display_the_correct_journey_in_the_required_message_whe
await wizard.SetDecisionMakerName("Tester");
await wizard.SetDeclinedReasonsAndContinue(Tuple.Create(AdvisoryBoardDeclinedReasons.Performance, "performance reasons"));

PageHeading.Should().Be("Date conversion was declined");
PageHeading.Should().Be("Date of decision");

DayPart.Value = default!;
MonthPart.Value = default!;
YearPart.Value = default!;

await wizard.ClickSubmitButton();

PageHeading.Should().Be("Date conversion was declined");
PageHeading.Should().Be("Date of decision");

ErrorSummary.Should().NotBeNull();
ErrorSummary.TextContent.Should().Contain("Enter the date when the conversion was declined");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task Should_continue_to_the_decline_date_page_on_submit()
{
await _wizard.SetDeclinedReasonsAndContinue(Tuple.Create(AdvisoryBoardDeclinedReasons.Other, "other reasons"));

PageHeading.Should().Be("Date conversion was declined");
PageHeading.Should().Be("Date of decision");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public async Task Should_not_display_conditions_details_for_declined_projects()
[Theory]
[InlineData(1, "Who made this decision?")]
[InlineData(3, "Were any conditions set?")]
[InlineData(4, "Date conversion was approved")]
[InlineData(4, "Date of decision")]
public async Task Should_go_back_to_choose_and_back_link_to_summary(int changeLinkIndex, string expectedTitle)
{
AdvisoryBoardDecision request = new()
Expand Down Expand Up @@ -243,8 +243,8 @@ public async Task Should_go_back_to_choose_and_back_link_to_summary(int changeLi
[Theory]
[InlineData(0, "Record the decision", "Who made this decision?")]
[InlineData(1, "Who made this decision?", "Decision maker's name")]
[InlineData(3, "Were any conditions set?", "Date conversion was approved")]
[InlineData(4, "Date conversion was approved", "Check your answers before recording this decision")]
[InlineData(3, "Were any conditions set?", "Date of decision")]
[InlineData(4, "Date of decision", "Check your answers before recording this decision")]
public async Task Should_go_back_to_choose_and_submit_back_to_summary(int changeLinkIndex, string changePageTitle, string nextPageTitle)
{
AdvisoryBoardDecision request = new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task Should_continue_to_the_deferred_date_page_on_submit()
await _wizard.SetDeferredReasonsAndContinue(Tuple.Create(AdvisoryBoardDeferredReason.Other, "other reasons"));

Document.QuerySelector<IHtmlElement>("h1")!.Text().Should()
.Be("Date conversion was deferred");
.Be("Date of decision");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@using Dfe.PrepareConversions.TagHelpers
@model Dfe.PrepareConversions.Pages.TaskList.Decision.DecisionDate
@{
ViewData["Title"] = $"Date {Model.DecisionText}";
ViewData["Title"] = $"Date of decision";
}

@section BeforeMain
Expand All @@ -12,7 +12,7 @@
}

<span id="selection-span" class="govuk-caption-l">Record the decision</span>
<h1 class="govuk-heading-l">Date conversion was @Model.DecisionText</h1>
<h1 class="govuk-heading-l">Date of decision</h1>

<form method="post">
<div class="govuk-form-group @ModelState.GetErrorStyleClass()">
Expand Down

0 comments on commit bf324d7

Please sign in to comment.