test: align polymarket utils tests with clob cleanup#29617
test: align polymarket utils tests with clob cleanup#29617ghgoodreau wants to merge 24 commits intomainfrom
Conversation
* main: (21 commits) feat(predict): Add A/B Test Analytics Instrumentation: Bet Slip + Pay with Any Token (#29464) feat: Accounts Metrics (#29015) feat: Enable mUSD conversion flow for hardware wallet accounts (#29418) chore: QA and bug fixes from dry run apr 29 (#29519) test: remove toMatchSnapshot and removed snapshot files in unassigned code owners pt 3/3 (#29441) fix(card): initialize spending limit from saved allowance (#29517) perf(accessibility): fix iOS accessibility in Ramp components (#29126) test: e2e labels rename and shards update (#29431) test: fix missing mock (#29549) feat(rewards): add targeted Sentry capture for rewards auth errors (#29545) feat: track token_security_type_destination in metrics (#29381) fix(bridge): hide sponsored label on cross-chain bridge with insufficient balance (#29490) ci: fix scheduled e2e runs (#29539) chore: Bump `snaps-controllers` (#29486) chore: add buy/sell trade markers to trader position chart (#29478) fix(rewards): leaderboard split view (#29500) perf(accessibility): fix iOS accessibility in shared components for p… (#29119) ci: switch OTA hotfix release branch to `-ota` suffix convention (#29353) ci: fix `get-requirements.yml` checks for `pull_request` events (#29528) feat: added developer options button to clear dismissed mUSD conversion asset details CTAs (#29510) ...
* main: feat: add Tempo chain as additionnal network (#29515) feat: add token list security badges (#29509) fix: percentage buttons for money account withdraw (#29339) feat(predict): Add Funds / Change Payment Method CTA (#29461) chore: enable swaps asset picker security tags (#29570) test: mock accounts v4 transactions endpoint (#29569) feat: money account transaction - add default value for accountOverride (#29332) fix: Refine Perps section and empty state patterns to match Home and Money (#29009)
This reverts commit c209fe7.
This reverts commit 1ecd652.
This reverts commit 87192d8.
This reverts commit 20ac05f.
Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #29617 +/- ##
==========================================
- Coverage 82.15% 81.52% -0.64%
==========================================
Files 5178 5226 +48
Lines 137450 138358 +908
Branches 31079 31395 +316
==========================================
- Hits 112924 112790 -134
- Misses 16875 17826 +951
- Partials 7651 7742 +91 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The risk is high because:
Performance Test Selection: |
|



Description
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-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
Note
Medium Risk
Updates token addresses/metadata used for Predict gas fee payments and rewards estimation, so an incorrect constant could affect on-chain transactions or points calculations. Changes are localized but touch transaction submission parameters and token display.
Overview
Predict now uses the new Polygon collateral contract (
MATIC_CONTRACTS_V2.collateral/POLYGON_PUSD) when settinggasFeeTokenfor claim/withdraw transaction batches and when estimating Rewards points (switches fee asset from USDC to pUSD).The Predict balance token list row is updated to use the pUSD token image, show the formatted balance as the description, and add
fiat_description: 'pUSD'; tests are adjusted accordingly. Account state hook/tests are also aligned to no longer expect/coverhasAllowances.Reviewed by Cursor Bugbot for commit a30e7c7. Bugbot is set up for automated code reviews on this repo. Configure here.