test(e2e): migrate token-approve confirmations to Appium (MMQA-2189) - #34293
Conversation
Port approve, increase-allowance, and set-approval-for-all to smoke-appium with shared confirmations flow helpers, and remove the Detox twins.
|
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. |
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
|



Description
Migrates the Detox
token-approveconfirmation smoke specs to Appium as part of MMQA-2189 (PR1 of the confirmations transactions Detox→Appium migration).approve,increase-allowance, andset-approval-for-allundertests/smoke-appium/confirmations/transactions/token-approve/tests/flows/confirmations.flow.tshelpers (navigateToContractAndTap,confirmCloseAndAssertActivity)tests/smoke/confirmations/transactions/token-approve/simulations.tssafe to import under Appium (no Detoxdeviceat module load)Local validation against main-e2e builds: approve / increase-allowance / set-approval-for-all green on iOS and Android.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MMQA-2189
Manual testing steps
Local Appium runs (main-e2e release binary):
Screenshots/Recordings
N/A — E2E test migration only; no product UI changes.
Before
N/A
After
N/A
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
Low Risk
Changes are limited to E2E tests and test helpers; no production app, auth, or wallet logic is modified.
Overview
Moves token-approve confirmation smoke coverage from Detox to Appium and deletes the matching specs under
tests/smoke/confirmations/transactions/token-approve/. New Appium suites coverapprove,increase-allowance, andset-approval-for-all(including ERC-721 revoke).Shared
confirmations.flowhelpers drive the dapp → confirmation → Activity path: Android prefers CDP WebView clicks with a native tap fallback (no double-submit), then confirm, dismiss push opt-in, close browser, and assert Activity.Test framework / POM updates target confirmation BottomSheets where Appium reports
isDisplayed=false:expectElementToExist, confirm wait/gone and single-click confirm with retry inFooterActions, and iOS number-pad spending-cap edit inTokenApproveConfirmation.simulations.tsresolves the localhost sentinel URL at use-time viaPlatformDetectorso Appium can import it without Detoxdevice. Minor Appium gesture fixes: W3C pointer long press,checkForDisplayedonGestures.typeText, and iOS keyboardnumberPadtyping.Reviewed by Cursor Bugbot for commit 1852bad. Bugbot is set up for automated code reviews on this repo. Configure here.