Skip to content

Commit

Permalink
Merge pull request #1592 from ministryofjustice/MLPAB-2568-to-task
Browse files Browse the repository at this point in the history
MLPAB-2568 When changing voucher redirect to identity journey for retry
  • Loading branch information
hawx authored Nov 4, 2024
2 parents 6a760c0 + 59c888a commit e6bebe1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/donor/what-you-can-do-now.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('what you can do now', () => {
cy.contains('label', 'I will return to GOV.UK One Login and confirm my identity').click();
cy.contains('button', 'Continue').click();

cy.url().should('contain', '/task-list')
cy.url().should('contain', '/confirm-your-identity')
})

it('can choose to add a voucher', () => {
Expand Down Expand Up @@ -177,7 +177,7 @@ describe('what you can do now', () => {
cy.contains('You have chosen to find, replace or get new ID');
cy.contains('a', 'Continue').click();

cy.url().should('contain', '/task-list')
cy.url().should('contain', '/confirm-your-identity')
});

it('can choose to add a voucher', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestPostAreYouSureYouNoLongerNeedVoucher(t *testing.T) {
provided *donordata.Provided
}{
donordata.ProveOwnIdentity: {
redirect: donor.PathTaskList,
redirect: donor.PathConfirmYourIdentity,
provided: &donordata.Provided{
LpaID: "lpa-id",
Voucher: donordata.Voucher{FirstNames: "a", LastName: "b"},
Expand Down
2 changes: 1 addition & 1 deletion internal/donor/donorpage/what_you_can_do_now.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func handleDoNext(doNext donordata.NoVoucherDecision, provided *donordata.Provid
switch doNext {
case donordata.ProveOwnIdentity:
provided.IdentityUserData = identity.UserData{}
return donor.PathTaskList
return donor.PathConfirmYourIdentity
case donordata.SelectNewVoucher:
provided.WantVoucher = form.Yes
return donor.PathEnterVoucher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestPostWhatYouCanDoNowExpired(t *testing.T) {
expectedDonor *donordata.Provided
}{
donordata.ProveOwnIdentity: {
expectedPath: donor.PathTaskList.Format("lpa-id"),
expectedPath: donor.PathConfirmYourIdentity.Format("lpa-id"),
expectedDonor: &donordata.Provided{
LpaID: "lpa-id",
IdentityUserData: identity.UserData{},
Expand Down
2 changes: 1 addition & 1 deletion internal/donor/donorpage/what_you_can_do_now_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestPostWhatYouCanDoNow(t *testing.T) {
expectedDonor *donordata.Provided
}{
donordata.ProveOwnIdentity: {
expectedPath: donor.PathTaskList.Format("lpa-id"),
expectedPath: donor.PathConfirmYourIdentity.Format("lpa-id"),
expectedDonor: &donordata.Provided{
LpaID: "lpa-id",
IdentityUserData: identity.UserData{},
Expand Down

0 comments on commit e6bebe1

Please sign in to comment.