qml: Accept the locale's decimal comma in amount and fee fields

bitcoin-core/gui-qml: PR #1140

1 suggestion

Optional improvements

Link

[suggestion] · Decimal-comma functional coverage stops before Review and broadcast

The real-wallet test checks the 1,5 fee estimate but never the paid fee; preparation coverage for 1,5 and .5 uses a mock wallet, leaving these repaired input forms without end-to-end payment coverage.

Location: test/functional/qml_test_decimal_comma.py:60 (head).

Details and suggested fix

Test 2 in qml_test_decimal_comma.py says the pasted rate is “paid at its decimal value”, but stops after comparing wallet.estimatedFee with the 1.5 estimate. Extend the pasted 1,5 case and a typed .5 case through Review and broadcast, reusing the flow and assert_fee_amount assertion from qml_test_custom_fee.py. Pass an explicit normalized expected rate, such as Decimal("1.5"), rather than converting the comma text directly. Estimation and preparation share ParseCustomFeeRatePerKvB, and the C++ tests already check preparation with a mock wallet, so this would add end-to-end regression coverage rather than fix a known mismatch. If the test intentionally covers estimation only, change its message to describe that narrower assertion.


Coverage details