feat(agentic): add mobile decimal reference recipe#28992
Conversation
Adds testIDs on decimal values across key Perps screens and extends the agentic bridge with text-scraping helpers so a single reusable recipe can capture the mobile-side decimal reference output. The recipe scripts/perps/agentic/teams/perps/recipes/reference-decimal-key-screens.json is the mobile reference pass for later extension parity checks.
|
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 1 potential issue.
❌ 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 dca772e. Configure here.
|
✅ E2E Fixture Validation — Schema is up to date |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag rationale:
No other tags are warranted as changes are isolated to Perps components and agentic testing infrastructure. Performance Test Selection: |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #28992 +/- ##
==========================================
- Coverage 82.26% 82.19% -0.08%
==========================================
Files 5055 5055
Lines 133121 133236 +115
Branches 29795 29828 +33
==========================================
Hits 109518 109518
- Misses 16173 16288 +115
Partials 7430 7430 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Description
Adds a single reusable agentic recipe that captures mobile-side decimal
output across key Perps screens, so it can serve as the mobile reference
pass for later extension parity checks.
scripts/perps/agentic/teams/perps/recipes/reference-decimal-key-screens.json— one entrypoint, covers market details, order, close, withdraw,
adjust-margin, flip, and position card screens. No dependency on
extra committed flows. Rerunnable against live mobile state to
regenerate a fresh baseline.
testIDs on decimal values across the covered Perps screens(entry / liq / funding / fees / receive / etc.) so the recipe can
assert against stable targets.
AgenticServicewith text-scraping bridge helpers(
pressText,getTextByTestId,getAncestorTextsByTestId,getRowValue) the recipe uses to extract row values.Intended reuse model:
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
N/A — tooling/testID PR, no user-visible UI change.
After
N/A — tooling/testID PR, no user-visible UI change.
Pre-merge author checklist
Performance checks (if applicable)
Pre-merge reviewer checklist
Note
Medium Risk
Introduces new agentic bridge helpers that traverse React Fiber trees to press/extract text, which could be brittle across React Native/DevTools changes and may affect debugging behavior in dev builds. UI changes are limited to adding
testIDprops on displayed values across Perps screens.Overview
Adds a new agentic validation recipe (
reference-decimal-key-screens.json) that navigates key Perps screens and captures displayed numeric/fiat values as a reusable baseline for later parity checks.To support stable extraction, this PR expands Perps
testIDcoverage on value fields (e.g., margin/liquidation/fees/receive/entry/funding/oracle price) and threads those IDs into shared components likePerpsFeesDisplayandPerpsCloseSummary.Extends
AgenticServicewith text-driven interaction and scraping utilities (pressText,getTextByTestId,getAncestorTextsByTestId,getRowValue) built on React Fiber traversal to locate pressables and read rendered text.Reviewed by Cursor Bugbot for commit 5aa046a. Bugbot is set up for automated code reviews on this repo. Configure here.