test: add component view tests for EVM and ERC-1155 send flows#27759
Conversation
Adds 5 new view tests covering previously untested send scenarios: - EVM ETH happy path (Amount → Recipient → Review button enabled) - Invalid address disables Review with error text - Token contract address opens SendAlertModal; cancel closes it - Amount exceeding balance shows Insufficient funds on Continue - ERC-1155 Amount screen shows NFT name and Next button lifecycle Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.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. |
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.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add EVM happy path (Amount → Recipient, valid address enables Review) - Add invalid address disables Review with error text - Add token contract address triggers alert modal; cancel closes it - Add insufficient balance disables Continue (shows error label) - Add ERC-1155 Amount screen shows NFT name, Next button enabled on input - Create send-alert-modal.testIds.ts with selector ID constants - Add AssetsContractController stub to component-view Engine mock Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No production app code was changed. No E2E test files were modified. The Performance Test Selection: |
|




Adds 5 new view tests covering previously untested send scenarios:
Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk since changes are limited to component-view tests and test mocks, with no production logic modifications.
Overview
Adds new component-view coverage for EVM send flows, including ETH happy path navigation, invalid recipient validation, insufficient-funds gating, and the token-contract recipient warning modal (with modal
CANCEL_BUTTON/ACKNOWLEDGE_BUTTONtest IDs).Extends the component-view
Enginemock to includeAssetsContractController.getTokenStandardAndDetails, enabling tests to simulate token contract address detection and reset mock behavior between cases.Written by Cursor Bugbot for commit b4acf8f. This will update automatically on new commits. Configure here.