diff options
| author | Adam Soltys <[email protected]> | 2026-07-04 08:20:41 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-04 08:20:41 -0700 |
| commit | fdbae7472b42cf9bb8bbdf7d069be287a1cb7fc9 (patch) | |
| tree | a33903450d2e6f4395d01582212e4af068e46501 /tools/ark | |
| parent | 1a8373c36706303802fde5148b74ab1634f0048e (diff) | |
| download | coinosv3-fdbae7472b42cf9bb8bbdf7d069be287a1cb7fc9.tar.gz coinosv3-fdbae7472b42cf9bb8bbdf7d069be287a1cb7fc9.zip | |
Gift claim: instant 'Payment received!' after claiming
Claiming into an existing wallet used to drop onto the Receive tab
(address/QR visibly rotating) until the background scan noticed the
credit and fired the celebration. The claim already knows it succeeded
and for how much, so the celebration now shows immediately; the scan
runs behind it and its receive-index advance is acknowledged so the
generic celebration doesn't fire a second time.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QFAcD4V284DvYZZHP7Rxxy
Diffstat (limited to 'tools/ark')
| -rw-r--r-- | tools/ark/gift-shot.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/ark/gift-shot.js b/tools/ark/gift-shot.js index b4bf2d1..b0c9ca5 100644 --- a/tools/ark/gift-shot.js +++ b/tools/ark/gift-shot.js @@ -83,6 +83,13 @@ await waitText('Claim it', 15000); await sleep(400); await page.screenshot({ path: '/tmp/gift-claim-existing.png' }); console.log('claim copy:', await page.evaluate(() => [...document.querySelectorAll('p')].map((e) => e.textContent).find((x) => x.includes('Claim it')))); + +// claim it — the celebration should be instant (no scan wait) +await clickText('button', 'Claim it'); +const t0 = Date.now(); +const celebrated = await waitText('Payment received', 10000); +console.log('celebration:', celebrated, 'after', Date.now() - t0, 'ms'); +await page.screenshot({ path: '/tmp/gift-claimed.png' }); console.log('done'); await browser.close(); dev.kill(); |
