test(mwpw-184989): repro getConfig pattern to validate AI review context [DO NOT MERGE]#540
test(mwpw-184989): repro getConfig pattern to validate AI review context [DO NOT MERGE]#540sanrai wants to merge 1 commit into
Conversation
… review context
Test-only change (do not merge). Reproduces the exact getConfig usage the AI
reviewer previously misread (claiming the empty-string 2nd arg is a default
value and suggesting getConfig('products', {})). Used to verify that the new
depth-2 source context lets the bot read makeConfigGetter/getByPath and get
the (group, subKey) signature right.
🤖 Agent QA review — interactive + visual diff (advisory, non-blocking)Drove the PR build on the live business.adobe.com collection (filtered, searched, paginated, inspected cards), guided by a PR-vs-stable visual diff (0.00% of pixels changed) and the PR code diff. Verdict: PASS. QA Report: PR #540 — test(mwpw-184989): repro getConfig patternSummaryPR #540 is a test-only PR that adds What Was Tested
Code Change AssessmentThe PR adds:
Findings
VerdictThe PR introduces no visual, functional, or runtime regressions on the target page. The code logic is sound and the guard conditions are correct. The only concern is informational: this PR is explicitly marked "DO NOT MERGE" and should not be merged into production. PR / stable / diff screenshots + console + axe artifacts in the workflow run. |
AI Code ReviewReviewIssue 1:
|
| Severity | Issue |
|---|---|
| Medium | Object.values() called on potentially non-object/array value — silently returns wrong data |
| Low | getConfig('products', '') should be getConfig('products') per API contract |
|
Test PR for validating AI review depth-2 context. Result: with depth-2 source context the bot reads getConfig's (group, subKey) signature correctly (no longer treats the 2nd arg as a default). Purpose served, closing. |
Test-only PR (do not merge) to validate the AI code review depth-2 source-context change.
It reproduces the exact
getConfigusage the AI reviewer repeatedly misread on #532 (claiming the empty-string second arg ofgetConfig('products', '')is a default value, and suggesting the brokengetConfig('products', {})).With the new source context (changed file + 2-hop relative imports), the bot should now pull
hooks.js->consonant.jsand readmakeConfigGetter/getByPath, so it understands the real(group, subKey)signature and does NOT repeat the misread.Watching the AI review comment to confirm. Will close after.