Skip to content

Commit

Permalink
PYIC-7651: Update journeyMap with new exit page (#2698)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmritSidhu authored Nov 14, 2024
2 parents 709ee95 + 040d9f8 commit 6832882
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 4 deletions.
25 changes: 24 additions & 1 deletion api-tests/features/p2-web-journey.feature
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,30 @@ Feature: P2 Web document journey
When I start a new 'medium-confidence' journey
Then I get a 'live-in-uk' page response
When I submit a 'end' event
Then I get a 'identify-device' page response
Then I get a 'dcmaw' CRI response

Scenario Outline: International address user sends a next event on exit page from DCMAW
Given I activate the 'internationalAddress' feature set
When I start a new 'medium-confidence' journey
Then I get a 'live-in-uk' page response
When I submit a 'end' event
Then I get a 'dcmaw' CRI response
When I call the CRI stub and get an 'access_denied' OAuth error
Then I get a 'non-uk-no-app' page response
When I submit a 'next' event
Then I get a 'dcmaw' CRI response

Scenario Outline: International address user sends an end event on exit page from DCMAW
Given I activate the 'internationalAddress' feature set
When I start a new 'medium-confidence' journey
Then I get a 'live-in-uk' page response
When I submit a 'end' event
Then I get a 'dcmaw' CRI response
When I call the CRI stub and get an 'access_denied' OAuth error
Then I get a 'non-uk-no-app' page response
When I submit a 'end' event
Then I get an OAuth response
When I use the OAuth response to get my identity

Scenario Outline: Successful P2 identity via Web using <cri> - DWP KBV
Given I activate the 'dwpKbvTest' feature set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,19 @@ states:
end:
targetState: RETURN_TO_RP

# Live in uk journey
# International Address journey
APP_DOC_CHECK_INTERNATIONAL_ADDRESS:
nestedJourney: APP_DOC_CHECK
exitEvents:
next:
targetState: POST_APP_DOC_CHECK_SUCCESS_PAGE
incomplete:
targetState: NON_UK_NO_APP_PAGE
incomplete-invalid-dl:
targetState: NON_UK_NO_APP_PAGE
alternate-doc-invalid-dl:
targetState: NON_UK_NO_APP_PAGE

LIVE_IN_UK_PAGE:
response:
type: page
Expand All @@ -815,5 +827,16 @@ states:
next:
targetState: IDENTITY_START_PAGE
end:
targetState: STRATEGIC_APP_TRIAGE
targetEntryEvent: appTriage
targetState: APP_DOC_CHECK_INTERNATIONAL_ADDRESS
targetEntryEvent: next

NON_UK_NO_APP_PAGE:
response:
type: page
pageId: non-uk-no-app
events:
next:
targetState: APP_DOC_CHECK_INTERNATIONAL_ADDRESS
targetEntryEvent: next
end:
targetState: RETURN_TO_RP

0 comments on commit 6832882

Please sign in to comment.