Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation page #16

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/routes/form-wizard/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ export default {
'/check': {
controller: MyController,
next: 'confirmation'
},
'/confirmation': {
}
}
29 changes: 29 additions & 0 deletions src/views/confirmation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% extends "layouts/main.html" %}

{% from 'govuk/components/panel/macro.njk' import govukPanel %}

{% set pageName = "Data sent" %}

{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
{{ govukPanel({
titleHtml: pageName
}) }}

<p>We’ve sent you a confirmation email.</p>

<h2 class="govuk-heading-m">What happens next</h2>

<p>We’ll send you an email once we publish the data. This usually happens within 5 working days.</p>

<h2 class="govuk-heading-m">
Give feedback
</h2>

<p><a href="#">Give feedback about this service</a> (takes 30 seconds).</p>

</div>
</div>

{% endblock %}
2 changes: 2 additions & 0 deletions test/acceptance/upload_data.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ test('Enter form information and upload a file with errors and without errors',
expect(await page.getByText('Bob Marley').isVisible(), 'supplied name not on check page').toBeTruthy()
expect(await page.getByText('My Fake LPA').isVisible(), 'supplied email not on check page').toBeTruthy()
await page.getByRole('button', { name: 'Send data' }).click()

await page.waitForURL('**/confirmation')
})