aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lock-wallet-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-17 07:13:06 -0700
committerAdam Soltys <[email protected]>2026-08-17 07:13:06 -0700
commit47dba03047b4b5b820d59fc5c1af7a1768ba7274 (patch)
tree6502a29d80d3d1950074a521a2981b45373f048d /tools/lock-wallet-test.js
parent49ae68290099bc37bbbf6d7ad4dee9f906623a38 (diff)
downloadcoinosv3-47dba03047b4b5b820d59fc5c1af7a1768ba7274.tar.gz
coinosv3-47dba03047b4b5b820d59fc5c1af7a1768ba7274.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz
Diffstat (limited to 'tools/lock-wallet-test.js')
-rw-r--r--tools/lock-wallet-test.js9
1 files changed, 7 insertions, 2 deletions
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();