aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lock-wallet-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-27 08:29:01 -0700
committerAdam Soltys <[email protected]>2026-09-27 08:29:01 -0700
commit3da7f9d52dee6a535190cd5e0db152a3689c7e8e (patch)
tree59197752b56538cf967c5b33758423c8d92e0eb1 /tools/lock-wallet-test.js
parentb06bbb48e6c6c7f81a9592ab9562bb8e3042b2b6 (diff)
downloadcoinosv3-3da7f9d52dee6a535190cd5e0db152a3689c7e8e.tar.gz
coinosv3-3da7f9d52dee6a535190cd5e0db152a3689c7e8e.zip
Accounts: tapping an identity signs in as it and opens its profile; the padlock moves from the header to this page.
The identity chip used to put the npub in the URL and leave the list on screen (the profile only paints over the wallet screen). Lock/Unlock now sits with the other device-wide actions (log out, clear); the padlock tests reach it through the Accounts page and lose their stale "Wallets" button. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'tools/lock-wallet-test.js')
-rw-r--r--tools/lock-wallet-test.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/lock-wallet-test.js b/tools/lock-wallet-test.js
index 03db663..13d2b91 100644
--- a/tools/lock-wallet-test.js
+++ b/tools/lock-wallet-test.js
@@ -82,17 +82,18 @@ try {
await sleep(1000);
console.log('\n[the padlock still asks — locking needs a password]');
+ // the padlock lives on the Accounts page (the balance card's switcher opens it)
+ await page.evaluate(() => document.querySelector('.balance-switch')?.click());
+ await sleep(600);
await page.evaluate(() => { const b = [...document.querySelectorAll('button')].find((n) => n.title === 'Lock wallet'); if (b) b.click(); });
await sleep(600);
txt = await body();
check('padlock asks even after "Not now"', /protect this device/i.test(txt), txt.slice(0, 120).replace(/\n+/g, ' | '));
await click('button', 'Not now');
await sleep(600);
- check('and declining lands home', await waitText('receive'));
+ check('and declining lands back on the Accounts page', /add account/i.test(await body()));
console.log('\n[now with a password]');
- await click('button', 'Wallets');
- await sleep(800);
await click('button', 'Change password');
await sleep(800);
const fields = await page.$$('input[type=password]');
@@ -138,7 +139,7 @@ try {
check('backing out deletes nothing', (await vaultSize()) > 0);
console.log('\n[delete all is the destructive one]');
- await click('button', 'Wallets');
+ await page.evaluate(() => document.querySelector('.balance-switch')?.click());
await sleep(800);
await click('button', 'Delete all');
await sleep(600);