From c16bf0dadec39806d48840ddf6885e5dcfc85d24 Mon Sep 17 00:00:00 2001 From: AmritSidhu Date: Wed, 11 Dec 2024 09:24:35 +0000 Subject: [PATCH] PYIC-7532: Add initial journey routing for non-uk strategic app users --- api-tests/features/p2-strategic-app.feature | 14 ++++++++++++++ .../statemachine/journey-maps/new-p2-identity.yaml | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/api-tests/features/p2-strategic-app.feature b/api-tests/features/p2-strategic-app.feature index fd1cd64051..35d38bc8d4 100644 --- a/api-tests/features/p2-strategic-app.feature +++ b/api-tests/features/p2-strategic-app.feature @@ -113,3 +113,17 @@ Feature: M2B Strategic App Journeys Then I get a 'page-ipv-identity-document-start' page response When I submit an 'end' event Then I get a 'page-ipv-identity-postoffice-start' page response + + Scenario: Strategic app non-uk address user gets to download app + Given I start a new 'medium-confidence' journey + And I activate the 'internationalAddress,strategicApp' feature sets + And I start a new 'medium-confidence' journey + Then I get a 'live-in-uk' page response + When I submit a 'international' event + Then I get a 'identify-device' page response + When I submit an 'appTriage' event + Then I get a 'pyi-triage-select-device' page response + When I submit a 'computer-or-tablet' event + Then I get a 'pyi-triage-select-smartphone' page response with context 'dad' + When I submit a 'iphone' event + Then I get a 'pyi-triage-desktop-download-app' page response with context 'iphone' diff --git a/lambdas/process-journey-event/src/main/resources/statemachine/journey-maps/new-p2-identity.yaml b/lambdas/process-journey-event/src/main/resources/statemachine/journey-maps/new-p2-identity.yaml index 2f37667417..a988387ae3 100644 --- a/lambdas/process-journey-event/src/main/resources/statemachine/journey-maps/new-p2-identity.yaml +++ b/lambdas/process-journey-event/src/main/resources/statemachine/journey-maps/new-p2-identity.yaml @@ -836,6 +836,10 @@ states: international: targetState: APP_DOC_CHECK_INTERNATIONAL_ADDRESS targetEntryEvent: next + checkFeatureFlag: + strategicAppEnabled: + targetState: STRATEGIC_APP_TRIAGE + targetEntryEvent: appTriage NON_UK_NO_APP_PAGE: response: