test: moves hardcoded testIds into dedicated files - accounts#27141
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.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These components are central to account selection, sync, and multi-chain handling, which are high-risk shared surfaces used across many E2E flows (navigation, dApp connections, transactions). Therefore, a high risk level is appropriate. No direct changes to confirmations, swaps, perps, predictions, ramps, card, or snaps were observed, and no controller/Engine-level logic was modified. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
This PR moves hardcoded strings into dedicated
*.testIds.tsfiles so they can be used through the multiple test parts to avoid duplication.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 refactor that only replaces hardcoded
testIDstrings with exported constants; main risk is breaking E2E/unit selectors if any IDs changed (they appear unchanged).Overview
Moves several hardcoded React Native
testIDstrings into new dedicated*.testIds.tsmodules and updates components to reference these constants.This standardizes selectors for multichain account list cells (
AccountListCell,ExternalAccountCell), Backup & Sync toggles (BackupAndSyncToggle,BackupAndSyncFeaturesToggles), and Smart Account UI (SmartAccountModal,SmartAccountNetworkList,LearnMoreBottomSheet) without changing UI behavior.Written by Cursor Bugbot for commit fdbbda0. This will update automatically on new commits. Configure here.