Repository navigation
Fix iOS E2E restore and scanner interactions - #321
Conversation
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Adds an iOS word-per-field fallback for recovery phrase entry plus a wait for RestoreButton to be enabled, and moves the iOS scanner tap to the top edge of Scan, above where the Send and Receive hit areas overlap it. Reviewed 132899f, full tier, static.
What I checked, and 4 candidates I ruled out
Read in full: test/helpers/actions.ts (pasteIOSText, typeText, confirmInputOnKeyboard, restoreWallet), test/helpers/gate-actions.ts, test/helpers/outcome.ts (actAndExpect, tapAndExpect), plus the iOS side they drive at bitkit-ios master: RestoreWalletView.swift, SeedTextField.swift, Components/Button/Button.swift, TabBar/ScanButton.swift.
Call sites traced: pasteIOSText (restoreWallet and migration.e2e.ts restoreRnWallet, which keeps the old typeText default), restoreWallet (10 specs), enterGateScanPrompt (9 calls in lnurl.e2e.ts).
CI: no checks report on this repo's PRs.
Build: build skipped: the author-permission check behind talos-pr-run could not read the collaborator permission with this token, so nothing on this branch ran here.
Ruled out
- Word-by-word fallback on
Word-0triggers the paste handler:RestoreWalletViewrunshandlePastedWordsonly whenfirstFieldTextcontains whitespace. A single word goes towords[0], and fields 1 to 11 bindwords[index]directly, so per-fieldsetValuefills all 12 without the split. waitForEnablednever resolving:RestoreButtonis aCustomButtonwithisDisabled: !isValidMnemonic, which applies SwiftUI.disabled(...), so XCUITest's enabled flag follows mnemonic validity. With a valid phrase it resolves, and with an invalid one the wait fails at the right step.- Top-edge tap misses the round button:
Scanis a 64 pt circle, so 2 pt below the top of its frame the circle is about 22 pt wide aroundx + width / 2. The tap lands inside it. - iOS path drops the Move to Spark intro recovery that
tapAndExpectwraps around its wait (#306):lnurl_1opens a channel before later scans, so the intro is possible on iOS. It only shows once Spark is usable on the Mini's local backend, which I could not establish from this repo. The author's full LNURL run, with 12 scanner opens, did not hit it. Too narrow to post.
Merge confidence: 4/5. No findings, but it did not run here and no CI covers it, and the Spark-intro candidate was ruled out only narrowly.
pwltr
left a comment
There was a problem hiding this comment.
Reviewed fdd25f8. The reported forced-fallback CPFP run restored the wallet and recovered its activity. The iOS scanner tap still requires ScanPrompt before submitting the QR input.
Pre-existing Low candidate
If Appium rejects the second Word-0 tap in test/helpers/actions.ts:559, the restore test aborts before reaching the typing fallback. The tap sits outside the try that handles an unavailable Paste menu. This boundary is also present on the base, and the rejection remains unverified on the supported simulator.
Review details
Quick review
Model: Claude Opus 5.5
Reasoning effort: high
General review
Model: GPT-6.2 Sol
Reasoning effort: high
Combined review
Model: GPT-6.2 Sol
Reasoning effort: high
|
I checked the Paste tap candidate against all four fallback occurrences in the passing Mini run. Both field taps returned HTTP 200 each time, and the Paste lookup timed out afterward. The fallback covers this reproduced path. A rejected field tap would need separate reproduction to establish the right recovery. |
There was a problem hiding this comment.
Verdict: ✅ Approve
Findings: None.
QA for fdd25f8:
Restore a wallet after a CPFP boost ✅ The word-by-word fallback restored the wallet and the gate verified the original transaction and its CPFP activity.
Restore a wallet after an RBF boost ✅ The word-by-word fallback restored the wallet and the gate verified the boosted transaction on retry.
The first attempt tapped the enabled Restore button, then timed out waiting for Get Started.
Restore a wallet with Lightning activity ✅ The word-by-word fallback restored the wallet and the gate verified its balance and Lightning activity.
Open the scanner and process LNURL requests ✅ The gate logged 12 successful scanner opens and passed the LNURL journey.
The four journeys above ran at this E2E head on iOS 27.2. Companion iOS gate
Open the scanner while the Move to Spark intro is visible ✅ The test dismissed the intro with Later, opened the scanner prompt, and submitted an LNURL-pay code that reached amount entry.
This focused run used iOS 27.0 and the app at caa0cb1, with Electrum routed to an isolated regtest fixture. Scanner recovery included the wait for the covered button before dismissing the intro.
scanner-spark-intro-2x.2x.mp4
Full review covered both changed helpers at fdd25f8. The pasteboard-error fallback and Android scanner path were checked in code. Diff
Reviewed by gpt-6.2-sol-high
Companion: synonymdev/bitkit-ios#1398
Changes
Why
On the Mini, entering the entire phrase as keystrokes filled the final field with one character and disabled Restore. That blocked the CPFP, RBF, and Lightning restore checks. LNURL reached the Send sheet when XCTest tapped Scan. The same failures occurred in each built-in attempt. Original PR job
Validation
git diff --checkpassed.fdd25f8. The first pass completed 11 of 13 cases. The built-in retry passed RBF and Trezor in 6m 49s. Gate job · Required check