Loading
Add handlePaste tests for testnet/regtest and identity URIs
Fills in the handlePaste cases from #534 (closed) that were still untested. The existing AppTest block covers empty input, mainnet addresses, amounts, bad amounts, unknown scheme and the http:// wrapper; this adds:
nexatest:andnexareg:address detection (chain comes from the URI prefix, and thenexareg:case also carries anamount)- the
https://wrapper in both unwrap forms:nexa/<address>→nexa:<address>, and the non-blockchainnexid/<host>→nexid://<host> - the
nexid:identity branch:op=loginagainst an unregistered domain (errors, stays put) and a registered one (goes to IdentityOp),op=regfor a new domain (goes to Identity withnewDomainset and the requested perms parsed),op=sign(any account is a candidate, no associated accounts), and a URI with noopat all
The identity tests assert on where nav lands and on the resulting IdentitySession, since handlePaste returns true for any nexid: URI regardless of what HandleIdentity decides.
Verified locally: :shared:jvmTest --tests "ui.AppTest" — 43 passed, 0 failed.
Closes #534 (closed)
Edited by Jørgen S. Notland