Repository navigation
feat(e2e): add Tron test fixtures and environment helpers - #44160
Conversation
✨ Files requiring CODEOWNER review ✨🧪 @MetaMask/qa (1 files, +25 -0)
|
|
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. |
Builds ready [e571d8a]
⚡ Performance Benchmarks (Total: 🟢 16 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
e571d8a to
0f60510
Compare
543ec1e to
1fc2415
Compare
Builds ready [0f60510] [reused from e571d8a]
⚡ Performance Benchmarks (Total: 🟢 16 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
1fc2415 to
8e6c767
Compare
0f60510 to
894c40c
Compare
8e6c767 to
674f862
Compare
894c40c to
4319488
Compare
Builds ready [4319488]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 9 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
57d2441 to
273bb7e
Compare
4319488 to
fb93775
Compare
Builds ready [fb93775]
⚡ Performance Benchmarks (Total: 🟢 13 pass · 🟡 11 warn · 🔴 0 fail)
Bundle size diffs
|
273bb7e to
7b0da27
Compare
fb93775 to
aceef18
Compare
Builds ready [aceef18]
⚡ Performance Benchmarks (Total: 🟢 18 pass · 🟡 6 warn · 🔴 0 fail)
Bundle size diffs
|
7b0da27 to
e802141
Compare
aceef18 to
c583ecf
Compare
Builds ready [c583ecf]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 9 warn · 🔴 0 fail)
Bundle size diffs
|
c583ecf to
3415193
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Builds ready [ec06e51] [reused from 3415193]
⚡ Performance Benchmarks (Total: 🟢 8 pass · 🟡 6 warn · 🔴 1 fail)
Bundle size diffs
|
| 'TBfAcJpbucUvLashnYvQ3uQyeLuD2vAs5J', | ||
| 'TFcoStNDSQZLadR2MasxMo7E3c19hwvw63', | ||
| 'TRnntwBfRqh4aXZVaZuLT9Htk1r9JBU4WY', | ||
| ] as const satisfies readonly [ |
There was a problem hiding this comment.
what is the intent for this long-long type ? that is should never be modified?
There was a problem hiding this comment.
Guarantee at compile time that these values are not reassigned



Description
This PR adds
withTronFixturesplus the Tron environment/token helpers and thenon-evm-homepagepage object that later Tron E2E clusters rely on. It is one reviewable step of a linear stack and replaces #43724. Validated by its Tron fixtures unit test passing. Based on a freshmainand under 1000 changed lines.Changelog
CHANGELOG entry: null
Related issues
Part of the local-blockchain E2E initiative (WPN-536).
Replaces #43724.
Manual testing steps
yarn build:testnon-evm-homepagepage object and Tron environment/token helpers are available to downstream specs.Screenshots/Recordings
N/A — test infrastructure only, no user-facing UI change.
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Test-only changes (fixtures, page objects, constants); no production wallet or auth logic.
Overview
Adds Tron E2E infrastructure so later Tron spec clusters can share one setup path instead of ad-hoc mocks and balances.
withTronFixtureswraps the existingwithFixturesflow: it turns declarative account/asset fixtures into local Tron node options, seeds TRC-20 contracts when needed, and registers Mockttp handlers for TronGrid/Infura-style account APIs, MetaMask token/spot-price APIs, feature flags, and optional transaction history.buildTronNodeOptionsis covered by a new unit test intron-fixtures.test.ts.Reusable token definitions (
TRX, TRC-10/20 symbols) and preset accounts (empty, full portfolio, staked TRX, low TRX + USDT) live undertests/tron/fixtures/.NonEvmHomepageextends the home page object with token balance checks and a Receive click for non-EVM flows.EXPECTED_TRON_ADDRESSES_BY_INDEXinconstants.tsdocuments HD accounts 1–8 from the E2E SRP for upcoming account-derivation tests.Reviewed by Cursor Bugbot for commit ec06e51. Bugbot is set up for automated code reviews on this repo. Configure here.