From 3da7f9d52dee6a535190cd5e0db152a3689c7e8e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 27 Sep 2026 08:29:01 -0700 Subject: 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 Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D --- tools/lock-wallet-test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/lock-wallet-test.js') 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); -- cgit v1.2.3