test: stabilize swap deeplink smoke after sendToHome on iOS#29523
test: stabilize swap deeplink smoke after sendToHome on iOS#29523
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. |
7decf0f to
8875385
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3533884. Configure here.
3533884 to
10d9d3f
Compare
|
|
✅ E2E Fixture Validation — Schema is up to date |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
No other tags are warranted since:
Performance Test Selection: |




Description
On iOS<16, Detox’s device.sendToHome() brings the home screen to the front. On iOS 16 and later, that path is not used the same way from the simulator tooling, so Detox instead launches and immediately quits the Settings app to put the app under test in the background. That can briefly show Settings and race the next step.
This PR tightens tests/smoke/swap/swap-deeplink-smoke.spec.ts: a 1 second wait after sendToHome() before launchApp({ url }), newInstance: false on those launchApp calls so the flow is clearly “same app instance, URL delivered after background,” and short comments above each wait explaining the pre‑16 vs 16+ behavior.
Changelog
CHANGELOG entry:
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
Low Risk
Low risk: changes are confined to Detox E2E test helpers/specs and only adjust timing, timeouts, and debug logging to reduce flakiness.
Overview
Improves swap E2E stability and debuggability.
In
swap-deeplink-smoke.spec.ts, adds a 1s pause afterdevice.sendToHome()(to avoid iOS 16+ Settings-app flicker/races) and launches deeplinks withnewInstance: falseso the URL is delivered to the existing app instance.In
swap-unified-ui.ts, addscreateLoggerdebug timings around waits for the network fee label andconfirmSwap, and sets explicit timeouts for the confirm button visibility check.Reviewed by Cursor Bugbot for commit 1c2f392. Bugbot is set up for automated code reviews on this repo. Configure here.