aboutsummaryrefslogtreecommitdiffstats
path: root/tools/padlock-ask-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-02 09:26:56 -0700
committerAdam Soltys <[email protected]>2026-10-02 09:26:56 -0700
commitfe569ffa701e3f9b54330def31193217eb470ab9 (patch)
treea13f33180c53346f49369f4bd52d03bfa38005e6 /tools/padlock-ask-test.js
parent65aa6c93153b28554127627dde2883a0685eeaff (diff)
downloadcoinosv3-fe569ffa701e3f9b54330def31193217eb470ab9.tar.gz
coinosv3-fe569ffa701e3f9b54330def31193217eb470ab9.zip
Balance card gear replaces Accounts; Spending's coins live behind it
- The "Accounts" pill on each balance face is now a gear. It opens that face's settings: Spending leads with its coins (renewal, the co-operative move to Savings, unilateral exit), then Security (lock, change password), the recovery phrase, auto-logout; Savings adds its public key. A wallet with no nostr identity also gets sign-in and log-out there, since it has no profile page to hold them. - The exit cost is no longer said under the balance; the Spending settings state it, always, not only when coin chains run deep. - The lone Manage link under the balance is gone (the gear is the way in); warning notices that are about the coins link to the same page. - The Accounts list, Add wallet and Delete all are no longer reached from the wallet (Delete all stays behind profile > Log out > forget). - Tests follow the gear: padlock-ask, lock-wallet and account-access pass again; cooperative-exit-ui clicks the Spending gear. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dmcrt9KyNDKVWFKnb8BREo
Diffstat (limited to 'tools/padlock-ask-test.js')
-rw-r--r--tools/padlock-ask-test.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/padlock-ask-test.js b/tools/padlock-ask-test.js
index f1fa3cf..5570b8f 100644
--- a/tools/padlock-ask-test.js
+++ b/tools/padlock-ask-test.js
@@ -35,25 +35,25 @@ try {
await click('button', 'Open wallet');
await waitText('receive', 20000);
- // open the Accounts page (the balance card's switcher) — the padlock lives there
- await page.evaluate(() => document.querySelector('.balance-switch')?.click());
+ // open the balance card's settings (its gear) — the padlock lives there
+ await page.evaluate(() => document.querySelector('.balance-gear')?.click());
await sleep(900);
- check('Accounts page is open', /add account/i.test(await bodyText()), (await bodyText()).slice(0, 60).replace(/\n/g, ' | '));
+ check('the wallet settings page is open', /security/i.test(await bodyText()), (await bodyText()).slice(0, 60).replace(/\n/g, ' | '));
// tap the padlock — the ask must appear without navigating anywhere
const tapped = await page.evaluate(() => {
const b = [...document.querySelectorAll('button')].find((e) => /lock/i.test(e.getAttribute('aria-label') || ''));
if (!b) return false; b.click(); return true;
});
- check('padlock is reachable from the Accounts page', tapped);
+ check('padlock is reachable from the wallet settings', tapped);
await sleep(500);
const text = await bodyText();
check('the ask appears on the tap', /protect this device/i.test(text), text.split('\n').slice(0, 3).join(' | '));
- // declining lands back on the Accounts page, not somewhere else
+ // declining lands back on the settings page, not somewhere else
await click('button', 'not now');
await sleep(600);
- check('declining lands back on the Accounts page', /add account/i.test(await bodyText()), (await bodyText()).slice(0, 60).replace(/\n/g, ' | '));
+ check('declining lands back on the wallet settings', /security/i.test(await bodyText()), (await bodyText()).slice(0, 60).replace(/\n/g, ' | '));
} finally {
await browser.close(); server.stop(true);
}