chore(agentic): improve mobile recipe validation and perps testability#28974
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4ccba7d. Configure here.
Tighten the mobile agentic recipe contract so invalid wait timing fields fail fast, screenshots are copied into the requested artifacts directory, and Perps modify-action flows expose stable test IDs for live validation instead of relying on undefined-derived selectors. Constraint: live mm-4 recipe validation needs deterministic selectors and artifact-local screenshot proof to be reviewable Rejected: keep relying on undefined-flip_position | accidental selector from missing base testID is too brittle for agentic validation Confidence: high Scope-risk: moderate Directive: keep modify-sheet entrypoints aligned on stable test IDs and keep validate-recipe fail-fast when schema contracts are violated Tested: yarn jest app/components/UI/Perps/components/PerpsModifyActionSheet/PerpsModifyActionSheet.test.tsx app/components/UI/Perps/Views/PerpsSelectModifyActionView/PerpsSelectModifyActionView.test.tsx --no-coverage Tested: node --check scripts/perps/agentic/validate-recipe.js Tested: node --check scripts/perps/agentic/validate-flow-schema.js Not-tested: full repo test suite Not-tested: fresh post-reload live selector probe on the narrowed branch
4ccba7d to
268671e
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
The changes are low-risk (additive testID props, no logic changes) and focused entirely on Perps UI components. Performance Test Selection: |
|




Description
This PR is limited to mobile app and mobile agentic validation improvements discovered while validating perps review flows on
mm-4.Scope of this PR:
undefined-*selector pathwait_for.timeoutusage fails fastvalidate-recipe.jsschema-validate before executionscripts/perps/agentic/README.mdCompatibility note:
--artifacts-dirruns now treat the provided path as the artifact root, so screenshots and run artifacts stay together under the requested directoryOut of scope for this PR:
.agents/skills/fs-cookTRACKER.mddocs/readme/fs-cook*.mdfs-review,fs-fixbug)Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
undefined-flip_positionAfter
mm-4confirms:perps-market-details-modify-buttonperps-market-details-modify-action-sheetperps-market-details-modify-action-sheet-flip_positionPre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist