Review report

bitcoin-core/gui-qml: PR #1090

4 suggestions

Earlier concerns neither republished nor resolved: 2 minor findings · 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · Replacement send coverage omits the password text sweep

The migration removes the post-unlock check for passwords in named QML text properties; relocking and password-field clearing assertions do not replace that coverage.

Location: test/functional/interface_qml_wallet_sending.py:53 (head).

Details and suggested fix

The deleted qml_test_password_wallet.py called assert_passphrase_not_in_ui() after review unlock in both the created-wallet and hardened-keypool fallback journeys. It inspected every named object's text property for the submitted password. The replacement functional journey and integration cases check relocking, while the popup component tests check field clearing. Neither detects a password copied into another label or error message. Restore the shared sweep after review unlock in the replacement send journey. The old check covered only named objects' text properties and was not exhaustive; this is a coverage regression, not an identified production password exposure.


Link

[suggestion] · Watch-only integration coverage bypasses the live review controls

The watch-only integration case checks capabilities and PSBT export through model calls, leaving this PR's hidden-Send and available-Save behavior untested with a real watch-only Send draft.

Location: test/integration/signers/test_watchonly.cpp:55 (head).

Details and suggested fix

createFromXpubAndPrepareUnsignedTransaction() directly calls prepareTransaction() and saveCurrentTransactionAsPsbt() without opening transactionReviewPopup. The component test checks hidden Send and visible Save using a mocked imported PSBT, so it does not connect the real model's changed capability to the ordinary Send-draft journey. After funding, enter the recipient through sendAddressInput and sendAmountInput, then open review with sendReviewButton. Assert that Send is hidden and Save and the watch-only warning are visible. Export through sendTransactionReviewSavePsbtPathField and the Save button, retaining the existing PSBT decoding and empty-mempool assertions.


Link

[suggestion] · Click helper silently retries swallowed input

For controls with clicked(), the helper can hide a consumed first click by repeatedly sending mouse input for up to ten seconds without reporting the retries.

Location: test/integration/fixture/test_util.h:150 (head).

Details and suggested fix

The base helper sent one mouse click. The new qWaitFor predicate sends another on each poll until the target emits pressed() or clicked(). If a closing popup or overlay consumes the first click, a later attempt can reach the target and let the test pass despite the extra input required. The readiness waits reduce this possibility but do not rule it out. Count attempts and fail when a retry is required, then make affected callers explicitly wait for the blocking popup or overlay to disappear. No currently masked regression was identified, and this mechanism does not establish duplicate activation of the target's own handler.


Link

[suggestion] · Cumulative-stage wording obscures exact test selection

The cumulative-stage sentence can imply that selecting one stage also runs earlier stages, but both runners filter only for explicitly selected stages.

Location: doc/integration-testing.md:118 (head).

Details and suggested fix

The sentence “Stage selection is exact, so building a cumulative stage selects every applicable earlier stage too” mixes the selector's behavior with the caller's validation responsibility. qml_scenarios.py matches membership in the supplied stages, while the integration runner matches one stage and rejects a repeated --stage. Reword this as: “Stage selection is exact. To validate a cumulative stage, pass --stage for that stage and each applicable earlier stage to the functional scripts, where the option is repeatable. For integration coverage, run each applicable stage's CTest entry; the integration runner accepts --stage only once.”


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.