From 47dba03047b4b5b820d59fc5c1af7a1768ba7274 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 17 Aug 2026 07:13:06 -0700 Subject: One Log out button, one honest question: the popup offers the plain exit and the full forget, each keeping its own warnings Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz --- tools/lock-wallet-test.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools/lock-wallet-test.js') diff --git a/tools/lock-wallet-test.js b/tools/lock-wallet-test.js index a798d09..baf4710 100644 --- a/tools/lock-wallet-test.js +++ b/tools/lock-wallet-test.js @@ -28,7 +28,9 @@ const vaultSize = () => page.evaluate(() => (localStorage.getItem('btc-wallet-va const logout = async () => { await page.evaluate(() => document.querySelector('.header-avatar')?.click()); await sleep(800); - await click('button', 'Log out'); + await click('button', 'Log out'); // opens the confirm popup + await sleep(500); + await page.evaluate(() => document.querySelector('.confirm-pop .btn-primary')?.click()); await sleep(1200); }; const enterSavings = async () => { @@ -123,7 +125,10 @@ try { await page.evaluate(() => document.querySelector('.header-avatar')?.click()); await sleep(800); txt = await body(); - check('the profile offers the drastic exit too', /forget this device/i.test(txt), txt.slice(0, 160).replace(/\n+/g, ' | ')); + await click('button', 'Log out'); // the popup carries both exits + await sleep(500); + txt = await body(); + check('the popup offers the drastic exit too', /forget this device/i.test(txt), txt.slice(0, 160).replace(/\n+/g, ' | ')); await click('button', 'forget this device'); await sleep(600); txt = await body(); -- cgit v1.2.3