-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MLPAB-1886 Add page to check details before sending to voucher (#1311)
- Loading branch information
Showing
14 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
describe('Check your details', () => { | ||
beforeEach(() => { | ||
cy.visit('/fixtures?redirect=/check-your-details&progress=payForTheLpa'); | ||
}); | ||
|
||
it('shows my details', () => { | ||
cy.checkA11yApp(); | ||
cy.contains('Sam Smith'); | ||
cy.contains('2 January 2000'); | ||
cy.contains('1 RICHMOND PLACE'); | ||
cy.contains('a', 'Continue').click(); | ||
|
||
cy.url().should('contain', '/task-list'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ describe('Enter voucher', () => { | |
cy.get('#f-email').type('[email protected]'); | ||
cy.contains('button', 'Save and continue').click(); | ||
|
||
cy.url().should('contain', '/task-list'); | ||
cy.url().should('contain', '/check-your-details'); | ||
}); | ||
|
||
it('errors when empty', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{ template "page" . }} | ||
|
||
{{ define "pageTitle" }}{{ tr .App "checkYourDetails" }}{{ end }} | ||
|
||
{{ define "main" }} | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-xl">{{ tr .App "checkYourDetails" }}</h1> | ||
<p class="govuk-body">{{ tr .App "weWillShareYourDetailsWithVoucher" }}</p> | ||
<p class="govuk-body">{{ tr .App "checkYourDetailsAreCorrectBeforeYouContinue" }}</p> | ||
|
||
<dl class="govuk-summary-list"> | ||
{{ template "summary-row" (summaryRow .App "name" | ||
.Donor.Donor.FullName | ||
(fromLink .App global.Paths.YourDetails "#f-first-names") | ||
"" true true | ||
) }} | ||
{{ template "summary-row" (summaryRow .App "dateOfBirth" | ||
(formatDate .App .Donor.Donor.DateOfBirth) | ||
(fromLink .App global.Paths.YourDetails "#f-date-of-birth") | ||
"" true true | ||
) }} | ||
{{ template "address-summary-row" (addressSummaryRow .App "address" | ||
.Donor.Donor.Address | ||
(fromLink .App global.Paths.YourAddress "#f-address-line-1") | ||
"" true true | ||
) }} | ||
</dl> | ||
|
||
{{ template "buttons" (button .App "continue" "link" (global.Paths.TaskList.Format .App.LpaID)) }} | ||
</div> | ||
</div> | ||
{{ end }} |