Skip to content

Commit e80dc73

Browse files
nogatesclaude
andauthored
Fix undo cleanup failing for "parameter with value" steps (#3500)
The "request contains parameter with value" step was not storing values in pathParameters, causing undo operations with path-origin parameters (e.g. organization_binding_id) to fail with "Path parameter not found". Match the behavior of the "parameter from" step by storing in pathParameters. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e842713 commit e80dc73

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

private/bdd_runner/src/step_definitions/request_steps.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ Given(
7171
Given(
7272
/request contains "([^"]+)" parameter with value (.*)/,
7373
function (this: World, parameterName: string, value: string) {
74-
this.opts[parameterName.toAttributeName().toOperationName()] = JSON.parse(
75-
value.templated(this.fixtures),
76-
);
74+
const parsedValue = JSON.parse(value.templated(this.fixtures));
75+
this.opts[parameterName.toAttributeName().toOperationName()] = parsedValue;
76+
77+
// Store in pathParameters for undo operations with naming variants
78+
this.pathParameters[parameterName] = parsedValue;
79+
this.pathParameters[parameterName.toAttributeName()] = parsedValue;
7780
},
7881
);
7982

0 commit comments

Comments
 (0)