aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-07-03 17:55:46 -0700
committerAdam Soltys <[email protected]>2026-07-03 17:55:46 -0700
commitea2c4683e71da6c050430fd0ea122821902282e0 (patch)
treedee90d01a2e0d2091f9b7d7868691bf76660c6ae /tools
parent190c13a338462a7a76ee65e9486e42c0165a65f4 (diff)
downloadcoinosv3-ea2c4683e71da6c050430fd0ea122821902282e0.tar.gz
coinosv3-ea2c4683e71da6c050430fd0ea122821902282e0.zip
Ark: 'Payment received!' celebration for Ark receives
Same card and tap-to-acknowledge flow as on-chain receives; the ack persists in the ark state (shows exactly once) and a 2h recency guard keeps old payments from celebrating when a wallet is opened later. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QFAcD4V284DvYZZHP7Rxxy
Diffstat (limited to 'tools')
-rw-r--r--tools/ark/ui-test.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ark/ui-test.js b/tools/ark/ui-test.js
index f8288e2..81dc3ae 100644
--- a/tools/ark/ui-test.js
+++ b/tools/ark/ui-test.js
@@ -109,6 +109,10 @@ try {
check('ark address shown', /^tark1[a-z0-9]+$/.test(arkAddr), arkAddr.slice(0, 24) + '…');
sh(`${ALICE} -q send ${arkAddr} "25000 sat"`);
check('ark balance shows 25,000', await waitLabeledNumber('ark balance', 25000, 30000), String(await labeledNumber('ark balance')));
+ check('payment celebration shown', await waitText('Payment received', 10000));
+ await clickText('.card', 'Payment received'); // tap to acknowledge
+ await sleep(400);
+ check('back to receive card after tap', await waitText('tark1', 5000));
// --- send over ark ---
console.log('\n[3] send over Ark');