diff options
| author | Adam Soltys <[email protected]> | 2026-11-15 14:32:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-15 14:32:10 -0700 |
| commit | 5cc640839a14f7a1c821b3630a591bca76717243 (patch) | |
| tree | cf831f0c50571fdded5f0f9d6089a0adf0d22bd2 /tools/signup-quick-test.js | |
| parent | 513fd7db08fb3c7e89fe651ac70913264a4bff22 (diff) | |
| download | coinosv3-5cc640839a14f7a1c821b3630a591bca76717243.tar.gz coinosv3-5cc640839a14f7a1c821b3630a591bca76717243.zip | |
Receive → Amount: ask for a sum with the point of sale's pad. "Add an 'Amount' button to receive that basically brings up the PoS screen" (Adam, 2026-11-15). Under the payment address on Spending's Receive (and under the Ark address where there's no name), Amount opens the till's amount screen as "Request an amount": the same pad, a What it's for note, Create invoice → the QR and amount → paid, then Done back to Receive. It leaves the till out: no tip prompt, no tip settings, no day's sales, and its invoices are marked so the till's sales list doesn't count them. Also: the HISTORY heading under Receive/Send no longer stands over an empty wallet (the last change hid the 'No transactions yet' card but not its heading). pos-test (request mode: no tips, straight to the invoice, Done, kept out of the sales) and signup-quick (Amount on Receive, opens the pad, Back; no History heading) pass, with footer-support and features-smoke
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6SwkivduFDDkMmnXjZ
Diffstat (limited to 'tools/signup-quick-test.js')
| -rw-r--r-- | tools/signup-quick-test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/signup-quick-test.js b/tools/signup-quick-test.js index d648a70..d184457 100644 --- a/tools/signup-quick-test.js +++ b/tools/signup-quick-test.js @@ -83,6 +83,15 @@ try { let s = await shape(); check('in, on Spending alone (no Savings face, no name on it)', s.faces === 1 && !s.carousel && !s.label, JSON.stringify({ faces: s.faces, carousel: s.carousel, label: s.label })); check('a quiet line asks for a way back in', /add a way back into your account/i.test(s.body)); + for (let i = 0; i < 60 && !(await page.$('#recv-amount')); i++) await sleep(250); + check('Receive has an Amount button', !!(await page.$('#recv-amount'))); + check('no History heading on an empty wallet', !/\bHISTORY\b/.test(await page.evaluate(() => document.body.innerText))); + if (process.env.SHOT3) await page.screenshot({ path: process.env.SHOT3 }); + await page.click('#recv-amount'); await sleep(500); + check('Amount opens the amount pad', !!(await page.$('.pos-amount')) && /request an amount/i.test(await text())); + if (process.env.SHOT4) await page.screenshot({ path: process.env.SHOT4 }); + await click('back'); await sleep(500); + check('Back returns to Receive', !(await page.$('.pos-amount')) && !!(await page.$('#recv-amount'))); const acct = await page.evaluate(() => JSON.parse(sessionStorage.getItem('btc-wallet-accounts') || '{}')); const a0 = (acct.accounts || [])[0] || {}; check('the account: spending-only, phrase unseen, saved to the device', a0.kind === 'spending' && a0.savingsLater && a0.seedSeen === false && a0.persisted, JSON.stringify({ kind: a0.kind, later: a0.savingsLater, seen: a0.seedSeen, persisted: a0.persisted })); |
