Skip to content

Commit

Permalink
fix: Updated confirmation page template layout (#1170)
Browse files Browse the repository at this point in the history
* Updated confirmation page template layout

* Fixed tests
  • Loading branch information
ziggy-cyb authored Dec 6, 2023
1 parent 9f0bcaf commit b7fb288
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions runner/src/server/views/confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
titleText: "Application complete",
html: tmpl
}) }}

<h2 class="govuk-heading-m">What happens next</h2>
{% if paymentSkipped %}
<p class="govuk-body">
Someone will be in touch to make a payment.
</p>
{% else %}
{% else %}
<p class="govuk-body">
You will receive an email with details with the next steps.
</p>
{% endif %}
{% if components.length > 0 %}
<h2 class="govuk-heading-m">What happens next</h2>
{% endif %}
{% else %}
{{ govukPanel({
titleText: customText.title,
html: tmpl
}) }}
<h2 class="govuk-heading-m">What happens next</h2>
{% if paymentSkipped and customText.paymentSkipped %}
<p class="govuk-body">
{{ customText.paymentSkipped }}
Expand All @@ -51,6 +51,9 @@ <h2 class="govuk-heading-m">What happens next</h2>
</p>
{% endif %}
{% endif %}
{% if components.length > 0 %}
<h2 class="govuk-heading-m">What happens next</h2>
{% endif %}
{% endif %}

{{ componentList(components) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ suite("StatusService getViewModel renders custom text correctly", () => {

$ = cheerio.load(response);
expect($("body").text()).to.contain("Application complete");
expect($("body").text()).to.contain("What happens next");
expect($("body").text()).to.contain(
"You will receive an email with details with the next steps"
);
Expand Down

0 comments on commit b7fb288

Please sign in to comment.