Skip to content

Commit

Permalink
PYIC-7797: fix typos and set default to append to existing features set
Browse files Browse the repository at this point in the history
  • Loading branch information
thebauSoftwire committed Jan 17, 2025
1 parent 3fd74bd commit eb04486
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions api-tests/features/audit-events.feature
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Feature: Audit Events
| evidence_requested | {"scoringPolicy":"gpg45","strengthScore":3} |
Then I get a 'page-face-to-face-handoff' page response

Given I activate the 'pendingF2FResetEnabled' feature set along with the e
Given I activate the 'pendingF2FResetEnabled' feature set
When I start a new 'medium-confidence' journey
Then I get a 'page-ipv-pending' page response with context 'f2f-delete-details'
When I submit a 'next' event
Expand Down Expand Up @@ -132,7 +132,7 @@ Feature: Audit Events
And audit events for 'reprove-identity-journey' are recorded [local only]

Scenario: No photo ID
Given I activate the 'p1Journeys' feature set along with the existing feature set
Given I activate the 'p1Journeys' feature set
When I start a new 'low-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'end' event
Expand Down Expand Up @@ -187,7 +187,7 @@ Feature: Audit Events
And audit events for 'inherited-identity-journey' are recorded [local only]

Scenario: International address journey
Given I activate the 'internationalAddress' feature set along with the existing feature set
Given I activate the 'internationalAddress' feature set
And I start a new 'medium-confidence' journey
Then I get a 'live-in-uk' page response
When I submit a 'international' event
Expand All @@ -197,7 +197,7 @@ Feature: Audit Events
And audit events for 'international-address-journey' are recorded [local only]

Scenario: Strategic app journey
Given I activate the 'strategicApp' feature set along with the existing feature set
Given I activate the 'strategicApp' feature set
When I start a new 'medium-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'appTriage' event
Expand Down
16 changes: 8 additions & 8 deletions api-tests/src/steps/ipv-steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,18 @@ const startNewJourney = async (
};

When(
/I activate the '([\w,]+)' feature set(?:s)?( along with the existing feature set(?:s)?)?/,
/I (override the existing feature set(?:s)? and )?activate the '([\w,]+)' feature set(?:s)?/,
function (
this: World,
featureSet: string,
addToExistingFeatureSets:
| " along with the existing feature set"
| " along with the existing feature sets"
overrideExistingFeatureSets:
| "override the existing feature set and "
| "override the existing feature sets and "
| undefined,
featureSet: string,
) {
this.featureSet = addToExistingFeatureSets
? this.featureSet + "," + featureSet
: featureSet;
this.featureSet = overrideExistingFeatureSets
? featureSet
: this.featureSet + "," + featureSet;
},
);

Expand Down

0 comments on commit eb04486

Please sign in to comment.