View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011945 | Taler | wallet (iOS App) | public | 2026-11-05 00:03 | 2026-11-19 08:47 |
| Reporter | bot-cg [agent] | ||||
| Implementer | MarcS | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | implementing | ||||
| Target Version | 1.7 | ||||
| Summary | 0011945: Wire Transfer: the QR code is drawn below the fold with the “Done” bar across it, so it cannot be scanned without scrolling | ||||
| Description | On the "Wire Transfer" screen the QR code that the user is meant to scan with their banking software is drawn below the fold, and the floating "Done" bar lies across what is left of it. On first presentation the code cannot be scanned, and nothing on the screen says that it has to be scrolled. Measured by UI automation on iPhone 17 (402x874pt), iOS 27.2, GNU_Taler debug build, on the settled screen before any scrolling: QR code [63, 633, 276, 276] -> its last 35pt are below the window "Done" bar [32, 793, 338, 47] -> lies across a further 17% of the code So about a quarter of the code is missing on arrival. A QR code with a corner missing does not decode at all, so the screen does not do the one thing it exists for until the user guesses to scroll. Reproduced independently on a second device size (420x912pt), where the code sits at [72, 643, 276, 276] with the bar at [32, 831, 356, 47] — see the attached screenshot, which is the unmodified screen. The same ordering hurts the withdrawal transaction detail: there the code is drawn at [63, 710, 276, 276], 40% of it below the window. Cause ----- Ordering in WireTransferView (TalerWallet1/Views/Transactions/ManualDetailsV.swift). The single inline QR code is emitted last, after the title, the amount, the "Wire transfer instructions" link and the explanatory sentence. A QR code is drawn at a fixed 276pt, so by then it starts at roughly y=640 on a phone and there is no room left. The floating bar comes from .safeAreaInset(edge: .bottom) in TransactionSummaryList, which draws over the list rather than after it. Suggested fix (patch attached, compiles against current master) --------------------------------------------------------------- Draw the code first: it is what the screen is for. The attached diff moves the inline single-code case (with its explanatory sentence) to the top of the list and leaves the multi-code case behind the existing "Wire transfer QR codes" link. No other screen changes. An alternative, if the ordering is deliberate, would be to scroll the code into view when the screen appears, or to size it to the space actually available. Either is fine; what matters is that the code is whole on arrival. How to reproduce ---------------- 1. Fresh install of the GNU_Taler scheme on an iPhone simulator (iOS 27.2). 2. Accept the terms of service. 3. Actions -> Withdraw, pick the demo exchange, enter an amount, confirm -- the manual (not bank-integrated) withdrawal. 4. The "Wire Transfer" screen appears. The QR code is below the fold with the blue "Done" bar across it; the screen has to be scrolled before the code can be scanned. With the UI fuzzing harness (branch dev/phoenix-bot/fuzzbang): python3 -m taler_fuzz.cli --prefer "demo cash,withdraw,confirm,accept,terms" \ explore -n 2 --run-id qr and the layout oracle reports it as "content-clipped-at-rest" and "control-covers-content", both high. Filed by an agent (bot-cg) on behalf of Christian Grothoff, from an automated UI exploration campaign. Left unassigned deliberately. | ||||
| Tags | No tags attached. | ||||
| Attached Files | qr-first-on-wire-transfer.diff (3,557 bytes)
diff --git a/TalerWallet1/Views/Transactions/ManualDetailsV.swift b/TalerWallet1/Views/Transactions/ManualDetailsV.swift
index ea15087e..3b945a27 100644
--- a/TalerWallet1/Views/Transactions/ManualDetailsV.swift
+++ b/TalerWallet1/Views/Transactions/ManualDetailsV.swift
@@ -89,6 +89,30 @@ struct WireTransferView: View {
let amountStr = transferAmount.formatted(specs: specs, isNegative: false, scope: account.scope)
let amountValue = transferAmount.valueStr
// let _ = print(amountStr, " | ", obtainStr)
+ let countA = transferOptions.count
+ let countB = firstOption.qrCodes?.count ?? 0
+ // Inline, as opposed to behind the "Wire transfer QR codes"
+ // link: exactly one code to show.
+ let showsInlineQR = !(countA > 1 || countB > 1) && countB > 0
+ && firstOption.paytoUri != nil
+ // The QR code is what this screen is for, so it goes first.
+ //
+ // It used to come last, after the title, the amount and the
+ // "Wire transfer instructions" link -- and a QR code is drawn
+ // at a fixed 276pt, so by then it started below the fold: the
+ // floating "Done" bar lay across its lower edge and the window
+ // cut off the rest. A code that has to be scrolled into view
+ // before it can be scanned, with nothing on screen saying so,
+ // is a code the user does not know is there.
+ if showsInlineQR {
+ Group {
+ Text("If your banking software runs on another device, you can scan this QR code:")
+ .listRowSeparator(.hidden)
+ QRcodeCopyShare(stack: stack.push(), option: firstOption)
+ .listRowSeparator(.automatic)
+ }.id(listID)
+ .talerFont(.body)
+ }
if !minimalistic {
Text(title)
.talerFont(.headline)
@@ -116,9 +140,6 @@ struct WireTransferView: View {
.accessibilityLabel(amountStr.1)
}
- let countA = transferOptions.count
- let countB = firstOption.qrCodes?.count ?? 0
-
if let paytoUri = firstOption.paytoUri {
let payto = PayTo(paytoUri)
if let receiverStr = payto.receiver {
@@ -139,14 +160,11 @@ struct WireTransferView: View {
.talerFont(.title3)
}
+ // The single-code case is drawn at the top of the
+ // list instead; several codes stay behind a link.
Group {
if countA > 1 || countB > 1 {
qrCodesRow(transferOptions)
- } else if countB > 0 { // show the single QR directly
- Text("If your banking software runs on another device, you can scan this QR code:")
- .listRowSeparator(.hidden)
- QRcodeCopyShare(stack: stack.push(), option: firstOption)
- .listRowSeparator(.automatic)
}
}.id(listID)
.talerFont(.body)
churn-report.txt (2,833 bytes)
Scanning a taler://pay/ URI opens the payment sheet, and the single button at
the bottom of that sheet changes what it does twice while the user is looking
at it, without moving:
1. "Done" — while talerTX is still the dummy transaction
2. "Cancel" — once it is a pay dialog but the amount is not known
3. "Pay <amount> now" — once wallet-core has returned the amount
All three are drawn in the same rectangle by the same .safeAreaInset, so the
user's thumb is already on its way to one of them when it becomes another.
Measured by UI automation (iPhone 17, iOS 27.2, GNU_Taler debug build): a
control at [32, 792, 338, 47] changed from "Cancel" to "Pay KUDOS 0.10 now"
in 118 ms, in the same place and at the same size, while the sheet's title
changed from "Payment" to "Confirm Payment". 118 ms is well under the time
between deciding to press something and pressing it.
Both directions cost the user something real:
* aiming for "Done" — meaning "do not pay" — and pressing "Pay": money
leaves the wallet on a decision the user had made the other way;
* aiming for "Pay", because that is where a Pay button normally is, and
pressing "Done": the payment is not made, the order is filed away among
the scanned QR codes, and finding it again is not obvious.
The duration of each state is one network round trip, so this is worst on a
connection fast enough that the swap happens after the user has aimed, and on
a slow one the misleading state is simply shown for longer.
Cause
-----
TalerWallet1/Views/Transactions/TransactionSummaryList.swift, the
.safeAreaInset(edge: .bottom). One slot, whose content is chosen by
`isPayDialog` and then by whether `effective` and `contractTerms` have
arrived; `PaymentScan` passes showDone: .prominent, so before wallet-core
answers the slot holds "Done".
Suggested fix (patch attached, compiles against current master)
---------------------------------------------------------------
Give the payment sheet two slots that never trade places: the commit action
on top, the dismiss action below it. The commit slot exists from the first
frame and is merely disabled until the amount is known, so nothing changes
meaning under the user's thumb. `expectPayDialog` is how a caller says a
sheet is going to become a payment dialog before wallet-core has confirmed
it, which is exactly the window in which the slot used to say "Done". A
sheet waiting on that answer stays swipe-dismissable so that a disabled
commit button is never a trap.
The patch adds one string, "Pay…", which needs translating.
A smaller mitigation, if the two-slot layout is unwanted: ignore taps on the
bottom button for a few hundred milliseconds after its action changes. That
treats the symptom rather than the cause, but it does prevent the mis-tap.
withdraw-manual-chf.json (9,633 bytes)
{
"id": "withdraw-manual-chf",
"title": "Fresh wallet -> real CHF withdrawal -> wire-transfer details",
"status": "candidate",
"why": [
"The manual (non-bank-integrated) withdrawal, which nothing in the",
"harness had ever driven. Promoted from c2h-13-e00006, whose 20 newly",
"covered features are ALL in ManualWithdrawDone.swift: that file had",
"never executed in 1,068 episodes.",
"",
"It matters beyond the one file. The screen this ends on is the",
"wire-transfer details screen, which carries the account chooser behind",
"11987 -- two segments rendered identically -- and the ErrorView branch",
"added for 11985. Both were reported by a user rather than by the",
"harness, because the harness funds wallets with withdrawTestBalance",
"and bank-integrated URIs and so had never visited the screen. A",
"survey of captured screens cannot find a defect on a screen nothing",
"visits; this scenario is what makes that screen visitable.",
"",
"The path also crosses the terms of service deliberately (steps 3-4),",
"which is the one place the app's cached tosStatus and wallet-core's",
"view are both exercised -- see 11934's 7037 note.",
"",
"SHRUNK 2026-11-10 from 9 steps to 7, on evidence rather than taste.",
"The promoted walk ended `tap BackButton` then `tap 'Wire transfer'`,",
"which was the walk leaving the screen and coming back. The first",
"validation run (vm1) failed on exactly that step -- `id=BackButton",
"matched nothing` -- while reporting `reached: True`: the app was",
"already on Wire Transfer after step 7's Confirm Withdrawal, and the",
"two extra steps were a detour the destination did not need. Both",
"state oracles and both functions had already passed at that point.",
"",
"Step 1 of the promoted walk was also dropped, and it was the only",
"fragile one: a bare coordinate tap at (0.125, 0.083). In vm1 it hit",
"nothing -- the action record says `candidates: 0` and the element tree",
"before and after it is identical, down to the clock. So the spec now",
"has no coordinate steps at all and every target is an identifier or a",
"label, which is what lets it survive a layout change."
],
"setup": {
"orientation": "portrait",
"reset": "per-episode",
"defaults": {
"minimalistic": "NO",
"developerMode": "YES"
}
},
"budget": {
"maxSeconds": 600,
"settleMs": 700,
"stepTimeoutMs": 90000,
"quietMs": 1500
},
"steps": [
{
"verb": "tap",
"at": {
"id": "button.onboarding.withdrawReal"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Withdraw Fr.",
"auto": true
},
{
"exists": {
"label": "You must first accept the payment service's terms of service before you can withdraw digital cash to your wallet.",
"match": "exact",
"type": "staticText"
},
"auto": true
}
]
},
"siblings": [
{
"id": "gear"
},
{
"label": "Actions",
"match": "contains",
"type": "button"
},
{
"label": "Swiss francs",
"match": "contains",
"type": "button"
},
{
"id": "button.onboarding.demoCash"
}
],
"fromStep": 4,
"reorderGroup": "01b72f434736"
},
{
"verb": "tap",
"at": {
"id": "button.withdraw.tos.open"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Terms of Service",
"auto": true
},
{
"exists": {
"label": "To unload a Taler wallet, users must transfer their funds to a Swiss bank account. International payments are not permitted. With the Taler wallet installed in the smartphone or web browser, users can make payments (within applicable limits) to natural persons and legal entities that accept this payment method and have a Swiss bank account to receive the funds (e.g., stores, web shops, apps, and other beneficiaries). When users make payments, the corresponding amount of e-money is debited directly from the Taler wallet. At least the transaction amount must be available in the Taler wallet's balance. Users consent to all payments made with the Taler wallet from their digital end device, even if these payments were made without their agreement. Anyone who redeems a token in the Taler wallet has used its represented value of the credit for payment.",
"match": "exact",
"type": "staticText"
},
"auto": true
}
]
},
"fromStep": 5,
"reorderGroup": "Withdraw Fr."
},
{
"verb": "tap",
"at": {
"id": "button.withdraw.tos.accept"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Withdraw Fr.",
"auto": true
},
{
"exists": {
"label": "inputView",
"match": "exact",
"type": "other"
},
"auto": true
}
]
},
"siblings": [
{
"id": "BackButton"
},
{
"label": "Language:",
"match": "contains",
"type": "button"
},
{
"id": "http://www.taler-ops.ch"
}
],
"fromStep": 6,
"reorderGroup": "Terms of Service"
},
{
"verb": "tap",
"at": {
"label": "Shortcut CHF 10.00",
"match": "contains",
"type": "button"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"hashChanged": true,
"auto": true
}
]
},
"siblings": [
{
"label": "Shortcut CHF 5.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 25.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
},
{
"id": "button.withdraw.confirm"
},
{
"label": "Return",
"match": "contains",
"type": "button"
}
],
"fromStep": 8,
"reorderGroup": "Withdraw Fr."
},
{
"verb": "tap",
"at": {
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
},
"siblings": [
{
"label": "Shortcut CHF 5.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 10.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 25.00",
"match": "contains",
"type": "button"
},
{
"id": "button.withdraw.confirm"
}
],
"fromStep": 9,
"reorderGroup": "Withdraw Fr."
},
{
"verb": "tap",
"at": {
"id": "button.withdraw.confirm"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Wire Transfer",
"auto": true
},
{
"exists": {
"label": "QR Code",
"match": "exact",
"type": "other"
},
"auto": true
}
]
},
"siblings": [
{
"label": "Shortcut CHF 5.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 10.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 25.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
}
],
"fromStep": 10,
"reorderGroup": "Withdraw Fr."
}
],
"green": {
"assertions": "all",
"functions": [
{
"name": "acceptManualWithdrawal",
"file": "Model+Withdraw.swift",
"line": 0
},
{
"name": "getWithdrawalDetailsForAmount",
"file": "Model+Withdraw.swift",
"line": 0
}
],
"state": [
{
"kind": "oslog",
"matches": "acceptManualWithdrawal\\{",
"minCount": 1,
"note": "the request that creates the reserve. Measured in c2h-13-e00006: the 14 wallet-core requests of this path end prepareWithdrawExchange, getWithdrawalDetailsForAmount, getExchangeTos, setExchangeTosAccepted, acceptManualWithdrawal, getTransactionById. This one is the commitment; the others also happen on paths that abandon the withdrawal."
},
{
"kind": "oslog",
"matches": "setExchangeTosAccepted\\{",
"minCount": 1,
"note": "steps 3-4 are the terms, and a run that skipped them would reach the amount screen on an exchange whose ToS the app merely believes are accepted -- which is the state behind 11934's 7037."
}
]
},
"origin": {
"run": "c2h-13-e",
"episode": "c2h-13-e00006",
"features": 20,
"keys": [
"tapPoint|point=0.125,0.0833",
"tap|id=button.onboarding.withdrawReal",
"tap|id=button.withdraw.tos.open",
"tap|id=button.withdraw.tos.accept",
"tap|label=Shortcut CHF 10.00|match=contains|type=button",
"tap|label=Shortcut CHF 50.00|match=contains|type=button",
"tap|id=button.withdraw.confirm",
"tap|id=BackButton",
"tap|label=Wire transfer|match=contains|type=button"
]
},
"reached": {
"withinMs": 10000,
"pollMs": 500,
"all": [
{
"nav": "Wire transfer",
"auto": true
},
{
"exists": {
"label": "Step 3: Finish the wire transfer of CHF\u00a0\u00a050.00 in your banking app or website, then this withdrawal will proceed automatically.\nDepending on your bank the transfer can take from minutes to two working days, please be patient.",
"match": "exact",
"type": "staticText"
},
"auto": true
},
{
"exists": {
"label": "Step 1: If you don't already have it in your banking favorites list, then copy and paste recipient and IBAN into the recipient/IBAN fields in your banking app or website (and save it as favorite for the next time):",
"match": "exact",
"type": "staticText"
},
"auto": true
}
]
}
}
| ||||
| Correction: the third attachment on this issue, "churn-report.txt", was attached here by mistake while I was verifying that attachments work at all. It does not belong to this defect — it describes a separate one on the payment sheet, which is being filed as its own issue. Please ignore it here. I cannot remove an attachment, so this note is the record. The two attachments that do belong here are the screenshot of the unmodified "Wire Transfer" screen and the suggested patch. | |
| The same defect on a second screen, with measurements, from an automated 2-hour campaign. Noted here rather than filed separately because the cause looks identical -- a QR code laid out below the window bottom on first presentation -- and one issue covering both screens is easier to act on than two. Screen: the withdrawal QR, captured with the app in Polish, navigation title **"Wypłacenie"**. iPhone 17, 402x874 pt, iOS 27.2, GNU_Taler debug build. All three observations are on the *settled* screen, not mid-transition. QR image frame below the window clipped [63, 657, 276, 276] y 874..933 21% [63, 691, 276, 276] y 874..967 33% [63, 714, 276, 276] y 874..990 42% The QR is 276 pt square and starts at y=657, 691 or 714 depending on how much text sits above it, so between a fifth and over two fifths of the code is off-screen. A partly off-screen QR cannot be scanned, and as with the Wire Transfer case nothing on the screen indicates that it must be scrolled. Two things that may be useful: * **The three figures are the same screen with different content above the code.** That suggests the layout places the QR after a variable-height block rather than reserving the code's own height, so the amount of clipping depends on the text -- and a longer localisation makes it worse. The Polish strings here are longer than the English ones. * This is the *window edge* clipping it, not the "Done" bar. On the Wire Transfer screen both happen; here only the first. So a fix that moves the floating bar would not help this screen. Found by the harness's layout analyzer, which reports a QR-like image whose frame extends past the window on a screen whose accessibility tree has stopped changing -- so it is at rest, with no animation in flight. | |
| Screenshot attached, which shows this better than the frame numbers did. The "Done" bar is drawn across the bottom of the QR code, covering roughly its last five rows including the bottom-left finder pattern -- so the code is not merely partly hidden, it is unscannable. Captured on the Wire Transfer screen, iPhone 17 (402x874 pt), iOS 27.2, dark appearance, GNU_Taler debug build. The image is cropped to the QR and the bar; the full screenshot shows the same thing with the surrounding layout. | |
| A second screen with the same defect, found by a scenario that was looking for something else: **"Authorize at Bank"**, where the bottom "Authorize later" bar is drawn over the last row of the list. Measured off the accessibility tree rather than eyeballed (`wkyc2-withdraw-kyc-stuck/screens.jsonl`): Using payment service: cell y 750.3 .. 831.0 "Using payment service:" y 769.3 .. 792.6 visible "tripwire.taler.net" y 792.7 .. 816.0 covered Authorize later button y 792.7 .. 840.0 So the row's *label* is readable and its *value* is not: the user cannot see which payment service the withdrawal will use. The harness's analyzer put it at 47% of content covered on that screen. Screenshot attached (`authorize-later-covers-url.png`). What I have **not** established, and did not want to assert: whether the list can be scrolled far enough to bring that row clear of the bar. On the Wire Transfer screen this issue was filed for, it could not be, and that is what made it unusable rather than untidy. Here the content is a List with room below, so it may well scroll clear and be merely untidy. Worth one look by someone with the screen in front of them. Reproduce: python3 -m taler_fuzz --config ~/fuzzwork/config.scen.json \ scenario withdraw-kyc-stuck --then-steps 0 The screen appears after "Confirm Withdrawal" and stays until the bank authorization lands. | |
| This now reproduces deterministically in six steps from a fresh install, and the screenshot attached (`11945-qr-clipped.png`) is the unmodified screen those six steps arrive at. Until tonight the harness had never driven a manual withdrawal: it funds wallets with `withdrawTestBalance` and bank-integrated URIs, so this screen appeared only when a random walk happened to find it. The walk that did (`c2h-13-e00006`) has been promoted, shrunk and validated, and is attached as `withdraw-manual-chf.json`: 1. tap `button.onboarding.withdrawReal` (fresh wallet, CHF) 2. tap `button.withdraw.tos.open` 3. tap `button.withdraw.tos.accept` 4. tap "Shortcut CHF 10.00" 5. tap "Shortcut CHF 50.00" 6. tap `button.withdraw.confirm` and that lands on Wire Transfer. The scenario is green on all three of the harness's oracles -- every UI assertion, both named functions (`acceptManualWithdrawal`, `getWithdrawalDetailsForAmount`) executed, and the wallet-core log carrying `acceptManualWithdrawal{` and `setExchangeTosAccepted{`. Two consecutive runs, vm2 and vm3. In the screenshot the Done bar crosses the QR's lower third and the bottom row of modules runs off the screen. Both bottom finder patterns -- the two squares a decoder uses to orient the code -- are gone, so this is not a cosmetic clipping: the code cannot be read at all in the state the user is handed. The analyzer's two findings on the same screen, for the record, with the caveat that both understate it: it sees only the 54 pt Swiss-cross logo (`swiss_qr`, `QRcodesForPayto.swift:36-40`, `logoSize = size * 9/46`), because the generated code itself is not an accessibility element. [high] control-covers-content: 'Done' covers 17% of a QR code [high] content-clipped-at-rest: a QR code is 12% below the window The real geometry is the one already in this report: the logo centre at (201, 771) puts the 276 pt code at y 633-909 on an 874 pt screen. What this adds beyond confirmation: the fix can now be checked by running one scenario rather than by waiting for a walk to stumble onto the screen. | |
| Correction to my previous note, posted before the second run had finished. I wrote "Two consecutive runs, vm2 and vm3." vm2 was green. vm3, which was still running when I wrote that, FAILED -- at step 2, `button.withdraw.tos.open matched nothing on screen`, 24 ms after the step began. So the scenario is not yet two-green and is not yet a committed regression test; it is a candidate with one green run. Everything else in that note stands, and none of it depends on the second run: the screenshot is from vm2's settled Wire Transfer screen, the six steps are the ones that produced it, and vm2's three oracles were green -- both functions executed and both wallet-core log lines present. The failure is in my scenario, not in the app. A `tap` step looks once and gives up, so any step that follows a navigation is racing it; vm3's tap on `Withdraw CHF` left the app on the onboarding screen and the next step found nothing. I am adding the explicit waits the spec language has for this and will re-run; I will post the result either way rather than leave this note as the last word. | |
| Result, as promised: the scenario is green twice and is now in the committed regression suite. vm4 and vm5, consecutively, green on all three oracles -- every UI assertion, both named functions (`acceptManualWithdrawal`, `getWithdrawalDetailsForAmount`) executed, and the wallet-core log carrying `acceptManualWithdrawal{` and `setExchangeTosAccepted{`. Two changes were needed after vm3's failure, both in my spec: * **Explicit waits.** A `tap` step resolves its target once; every tap in this path follows a navigation or an async reload, so the six taps now have five `waitFor` steps between them, each naming the control the next tap needs. * **A real end-state check.** vm3 also exposed that the generated `reached` block was vacuous: promotion marks every predicate it writes `auto`, advisory predicates were skipped when the block was evaluated, and `all` over an empty list is true -- so `reached: true` was reported for a run sitting on the onboarding screen. It now asserts three binding things about the Wire Transfer screen: the navigation title, the sentence `WireTransferView` draws, and the "Wire transfer instructions" row. So the six steps in my earlier note are right, and the attached spec (which I will re-attach in its final form) wraps them in the waits that make them repeatable. The screenshot is unchanged and still from vm2. withdraw-manual-chf-final.json (13,689 bytes)
{
"id": "withdraw-manual-chf",
"title": "Fresh wallet -> real CHF withdrawal -> wire-transfer details",
"status": "candidate",
"why": [
"The manual (non-bank-integrated) withdrawal, which nothing in the",
"harness had ever driven. Promoted from c2h-13-e00006, whose 20 newly",
"covered features are ALL in ManualWithdrawDone.swift: that file had",
"never executed in 1,068 episodes.",
"",
"It matters beyond the one file. The screen this ends on is the",
"wire-transfer details screen, which carries the account chooser behind",
"11987 -- two segments rendered identically -- and the ErrorView branch",
"added for 11985. Both were reported by a user rather than by the",
"harness, because the harness funds wallets with withdrawTestBalance",
"and bank-integrated URIs and so had never visited the screen. A",
"survey of captured screens cannot find a defect on a screen nothing",
"visits; this scenario is what makes that screen visitable.",
"",
"The path also crosses the terms of service deliberately (steps 3-4),",
"which is the one place the app's cached tosStatus and wallet-core's",
"view are both exercised -- see 11934's 7037 note.",
"",
"SHRUNK 2026-11-10 from 9 steps to 7, on evidence rather than taste.",
"The promoted walk ended `tap BackButton` then `tap 'Wire transfer'`,",
"which was the walk leaving the screen and coming back. The first",
"validation run (vm1) failed on exactly that step -- `id=BackButton",
"matched nothing` -- while reporting `reached: True`: the app was",
"already on Wire Transfer after step 7's Confirm Withdrawal, and the",
"two extra steps were a detour the destination did not need. Both",
"state oracles and both functions had already passed at that point.",
"",
"Step 1 of the promoted walk was also dropped, and it was the only",
"fragile one: a bare coordinate tap at (0.125, 0.083). In vm1 it hit",
"nothing -- the action record says `candidates: 0` and the element tree",
"before and after it is identical, down to the clock. So the spec now",
"has no coordinate steps at all and every target is an identifier or a",
"label, which is what lets it survive a layout change.",
"",
"WAITS ADDED 2026-11-10 after vm3 failed where vm2 had passed. Every",
"tap in this path follows a navigation or an async reload, and a `tap`",
"step resolves its target once; the failure took 24 ms. The five",
"`waitFor` steps are not padding -- each names the control the next tap",
"needs and says which asynchronous thing it is waiting on."
],
"setup": {
"orientation": "portrait",
"reset": "per-episode",
"defaults": {
"minimalistic": "NO",
"developerMode": "YES"
}
},
"budget": {
"maxSeconds": 600,
"settleMs": 700,
"stepTimeoutMs": 90000,
"quietMs": 1500
},
"steps": [
{
"verb": "waitFor",
"expect": {
"withinMs": 30000,
"pollMs": 400,
"all": [
{
"exists": {
"id": "button.onboarding.withdrawReal"
}
}
]
},
"note": "The onboarding screen is not there the instant the app is: measured 2026-11-09, wallet-core finishes at 4.7 s but the scene only becomes active at 29.8 s, and XCUITest cannot see it before that."
},
{
"verb": "tap",
"at": {
"id": "button.onboarding.withdrawReal"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Withdraw Fr.",
"auto": true
},
{
"exists": {
"label": "You must first accept the payment service's terms of service before you can withdraw digital cash to your wallet.",
"match": "exact",
"type": "staticText"
},
"auto": true
}
]
},
"siblings": [
{
"id": "gear"
},
{
"label": "Actions",
"match": "contains",
"type": "button"
},
{
"label": "Swiss francs",
"match": "contains",
"type": "button"
},
{
"id": "button.onboarding.demoCash"
}
],
"fromStep": 4,
"reorderGroup": "01b72f434736"
},
{
"verb": "waitFor",
"expect": {
"withinMs": 30000,
"pollMs": 400,
"all": [
{
"exists": {
"id": "button.withdraw.tos.open"
}
}
]
},
"note": "WHY THIS STEP EXISTS: a `tap` resolves its target once and gives up. vm3 (2026-11-10) failed here after 24 ms -- the tap on `Withdraw CHF` had left the app on the onboarding screen, and the next step looked at that screen exactly once. vm2 had passed. A scenario whose every step follows a navigation needs the waits the spec language has, or it measures the host's timing."
},
{
"verb": "tap",
"at": {
"id": "button.withdraw.tos.open"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Terms of Service",
"auto": true
},
{
"exists": {
"label": "To unload a Taler wallet, users must transfer their funds to a Swiss bank account. International payments are not permitted. With the Taler wallet installed in the smartphone or web browser, users can make payments (within applicable limits) to natural persons and legal entities that accept this payment method and have a Swiss bank account to receive the funds (e.g., stores, web shops, apps, and other beneficiaries). When users make payments, the corresponding amount of e-money is debited directly from the Taler wallet. At least the transaction amount must be available in the Taler wallet's balance. Users consent to all payments made with the Taler wallet from their digital end device, even if these payments were made without their agreement. Anyone who redeems a token in the Taler wallet has used its represented value of the credit for payment.",
"match": "exact",
"type": "staticText"
},
"auto": true
}
]
},
"fromStep": 5,
"reorderGroup": "Withdraw Fr."
},
{
"verb": "waitFor",
"expect": {
"withinMs": 30000,
"pollMs": 400,
"all": [
{
"exists": {
"id": "button.withdraw.tos.accept"
}
}
]
},
"note": "WithdrawTOSView fetches the terms with getExchangeTos before it can offer Accept."
},
{
"verb": "tap",
"at": {
"id": "button.withdraw.tos.accept"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Withdraw Fr.",
"auto": true
},
{
"exists": {
"label": "inputView",
"match": "exact",
"type": "other"
},
"auto": true
}
]
},
"siblings": [
{
"id": "BackButton"
},
{
"label": "Language:",
"match": "contains",
"type": "button"
},
{
"id": "http://www.taler-ops.ch"
}
],
"fromStep": 6,
"reorderGroup": "Terms of Service"
},
{
"verb": "waitFor",
"expect": {
"withinMs": 30000,
"pollMs": 400,
"all": [
{
"exists": {
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
}
}
]
},
"note": "the amount screen reappears after the terms are accepted, and `acceptAction: reloadExchange` is async."
},
{
"verb": "tap",
"at": {
"label": "Shortcut CHF 10.00",
"match": "contains",
"type": "button"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"hashChanged": true,
"auto": true
}
]
},
"siblings": [
{
"label": "Shortcut CHF 5.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 25.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
},
{
"id": "button.withdraw.confirm"
},
{
"label": "Return",
"match": "contains",
"type": "button"
}
],
"fromStep": 8,
"reorderGroup": "Withdraw Fr."
},
{
"verb": "tap",
"at": {
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
},
"siblings": [
{
"label": "Shortcut CHF 5.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 10.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 25.00",
"match": "contains",
"type": "button"
},
{
"id": "button.withdraw.confirm"
}
],
"fromStep": 9,
"reorderGroup": "Withdraw Fr."
},
{
"verb": "waitFor",
"expect": {
"withinMs": 20000,
"pollMs": 400,
"all": [
{
"exists": {
"id": "button.withdraw.confirm"
}
}
]
},
"note": "Confirm Withdrawal is gated on tosAccepted (WithdrawAcceptView.swift:120), which is set from the reloaded exchange record."
},
{
"verb": "tap",
"at": {
"id": "button.withdraw.confirm"
},
"expect": {
"withinMs": 8000,
"pollMs": 400,
"all": [
{
"nav": "Wire Transfer",
"auto": true
},
{
"exists": {
"label": "QR Code",
"match": "exact",
"type": "other"
},
"auto": true
}
]
},
"siblings": [
{
"label": "Shortcut CHF 5.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 10.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 25.00",
"match": "contains",
"type": "button"
},
{
"label": "Shortcut CHF 50.00",
"match": "contains",
"type": "button"
}
],
"fromStep": 10,
"reorderGroup": "Withdraw Fr."
}
],
"green": {
"assertions": "all",
"functions": [
{
"name": "acceptManualWithdrawal",
"file": "Model+Withdraw.swift",
"line": 0
},
{
"name": "getWithdrawalDetailsForAmount",
"file": "Model+Withdraw.swift",
"line": 0
}
],
"state": [
{
"kind": "oslog",
"matches": "acceptManualWithdrawal\\{",
"minCount": 1,
"note": "the request that creates the reserve. Measured in c2h-13-e00006: the 14 wallet-core requests of this path end prepareWithdrawExchange, getWithdrawalDetailsForAmount, getExchangeTos, setExchangeTosAccepted, acceptManualWithdrawal, getTransactionById. This one is the commitment; the others also happen on paths that abandon the withdrawal."
},
{
"kind": "oslog",
"matches": "setExchangeTosAccepted\\{",
"minCount": 1,
"note": "steps 3-4 are the terms, and a run that skipped them would reach the amount screen on an exchange whose ToS the app merely believes are accepted -- which is the state behind 11934's 7037."
}
]
},
"origin": {
"run": "c2h-13-e",
"episode": "c2h-13-e00006",
"features": 20,
"keys": [
"tapPoint|point=0.125,0.0833",
"tap|id=button.onboarding.withdrawReal",
"tap|id=button.withdraw.tos.open",
"tap|id=button.withdraw.tos.accept",
"tap|label=Shortcut CHF 10.00|match=contains|type=button",
"tap|label=Shortcut CHF 50.00|match=contains|type=button",
"tap|id=button.withdraw.confirm",
"tap|id=BackButton",
"tap|label=Wire transfer|match=contains|type=button"
]
},
"reached": {
"withinMs": 20000,
"pollMs": 500,
"all": [
{
"nav": "Wire Transfer",
"why": "the screen this scenario exists to reach"
},
{
"exists": {
"label": "The payment service is waiting for your wire-transfer.",
"match": "contains",
"type": "staticText"
},
"why": "the sentence WireTransferView draws from its `title`, so it distinguishes the arrived screen from a loading one"
},
{
"exists": {
"label": "Wire transfer instructions",
"match": "contains",
"type": "button"
},
"why": "the row whose destination carries the payto details; its presence means transferOptions resolved"
}
],
"why": [
"REPLACED 2026-11-10. Promotion generated this block from the walk's",
"last screen, which was one level deeper -- the instructions",
"sub-screen, with its 'Step 1:' and 'Step 3:' sentences -- and",
"marked every predicate `auto`. Advisory predicates were skipped",
"when the block was evaluated, so `all` ran over nothing and",
"`reached` came back TRUE for vm3, a run that stopped on the",
"onboarding screen after 2 of 6 steps. These three are binding and",
"describe the screen the six steps actually arrive at, measured in",
"vm2."
]
},
"history": [
"c2h-13-e00006 the walk that found it (20 new features, all in",
" ManualWithdrawDone.swift, first execution in 1,068 eps)",
"vm1 FAILED step 8 `tap BackButton` matched nothing -- and `reached`",
" already held, so the promoted tail was a detour. Dropped",
" steps 8-9 and the leading coordinate tap, which the",
" action record shows hit nothing (`candidates: 0`).",
"vm2 GREEN 6 steps, all three oracles.",
"vm3 FAILED step 2 after 24 ms: the tap on `Withdraw CHF` had left",
" the app on the onboarding screen and a `tap` resolves",
" its target once. Added the five `waitFor` steps.",
" It also exposed the vacuous `reached` -- that run",
" reported `reached: true` from the onboarding screen,",
" because promotion's generated predicates are all `auto`",
" and `auto` ones were skipped. Replaced the block with",
" three binding predicates describing the screen the six",
" taps actually arrive at.",
"vm4 GREEN 11 steps (6 taps, 5 waits), all three oracles.",
"vm5 GREEN same, consecutively -- the two greens the suite needs."
]
}
| |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-05 00:03 | bot-cg | New Issue | |
| 2026-11-05 00:04 | bot-cg | File Added: wire-transfer-qr-under-done-button.png | |
| 2026-11-05 00:04 | bot-cg | File Added: qr-first-on-wire-transfer.diff | |
| 2026-11-05 00:04 | bot-cg | File Added: churn-report.txt | |
| 2026-11-05 00:04 | bot-cg | Note Added: 0030261 | |
| 2026-11-05 08:23 | Christian Grothoff | Implementer | => MarcS |
| 2026-11-05 08:23 | Christian Grothoff | Reviewer | => Christian Grothoff |
| 2026-11-05 08:23 | Christian Grothoff | Release signed by | => MarcS |
| 2026-11-05 08:23 | Christian Grothoff | Deployed by | => MarcS |
| 2026-11-05 08:23 | Christian Grothoff | Verifier | => Christian Grothoff |
| 2026-11-05 08:23 | Christian Grothoff | Status | new => planning |
| 2026-11-05 08:23 | Christian Grothoff | Target Version | => 1.7 |
| 2026-11-08 17:10 | bot-cg | Note Added: 0030324 | |
| 2026-11-08 17:59 | bot-cg | File Added: 11945-qr-cut-by-done-bar.png | |
| 2026-11-08 17:59 | bot-cg | Note Added: 0030329 | |
| 2026-11-09 11:06 | bot-cg | Note Added: 0030344 | |
| 2026-11-09 11:06 | bot-cg | File Added: authorize-later-covers-url.png | |
| 2026-11-10 02:12 | bot-cg | File Added: 11945-qr-clipped.png | |
| 2026-11-10 02:12 | bot-cg | File Added: withdraw-manual-chf.json | |
| 2026-11-10 02:12 | bot-cg | Note Added: 0030369 | |
| 2026-11-10 02:14 | bot-cg | Note Added: 0030370 | |
| 2026-11-10 02:21 | bot-cg | Note Added: 0030371 | |
| 2026-11-10 02:21 | bot-cg | File Added: withdraw-manual-chf-final.json | |
| 2026-11-19 08:47 | Christian Grothoff | Status | planning => implementing |