aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-17 06:57:10 -0700
committerAdam Soltys <[email protected]>2026-08-17 06:57:10 -0700
commitede4516e2255bb65d22dd1a74d0e8332b0417194 (patch)
tree95f04322c65ea77f2026e72428a0ab5f5cf402e9 /tools
parentbe93ce6e37a6304d295b5ecc2f95db52964b0074 (diff)
downloadcoinosv3-ede4516e2255bb65d22dd1a74d0e8332b0417194.tar.gz
coinosv3-ede4516e2255bb65d22dd1a74d0e8332b0417194.zip
The wallet row's delete earns a trash can instead of an ambiguous ✕, and Clear all says Delete all — the word for what it does
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz
Diffstat (limited to 'tools')
-rw-r--r--tools/lock-wallet-test.js12
-rw-r--r--tools/padlock-flow-test.js2
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/lock-wallet-test.js b/tools/lock-wallet-test.js
index 5a25615..30f5982 100644
--- a/tools/lock-wallet-test.js
+++ b/tools/lock-wallet-test.js
@@ -1,4 +1,4 @@
-// "Log out" locks; only "Clear all" deletes.
+// "Log out" locks; only "Delete all" deletes.
//
// Wallets save themselves to this device under an empty password unless the
// user sets one. Logging out of a passwordless vault offers a password ONCE
@@ -119,14 +119,14 @@ try {
check('the password opens it', await waitText('receive'));
await sleep(1000);
- console.log('\n[clear all is the destructive one]');
+ console.log('\n[delete all is the destructive one]');
await click('button', 'Wallets');
await sleep(800);
- await click('button', 'Clear all');
+ await click('button', 'Delete all');
await sleep(600);
txt = await body();
- check('it warns first', /clear all/i.test(txt) && /(delete|remove|erase|wipe|lose)/i.test(txt), txt.slice(0, 160).replace(/\n+/g, ' | '));
- await page.evaluate(() => { const b = [...document.querySelectorAll('.btn-primary')].find((e) => /clear all/i.test(e.textContent)); if (b) b.click(); });
+ check('it warns first', /delete all/i.test(txt) && /(delete|remove|erase|wipe|lose)/i.test(txt), txt.slice(0, 160).replace(/\n+/g, ' | '));
+ await page.evaluate(() => { const b = [...document.querySelectorAll('.btn-primary')].find((e) => /delete all/i.test(e.textContent)); if (b) b.click(); });
await sleep(1200);
txt = await body();
check('everything is gone', (await vaultSize()) === 0);
@@ -137,5 +137,5 @@ try {
await browser.close();
server.stop(true);
}
-console.log(fails ? '\n❌ failures above' : '\n✅ log out locks, clear all deletes');
+console.log(fails ? '\n❌ failures above' : '\n✅ log out locks, delete all deletes');
process.exit(fails ? 1 : 0);
diff --git a/tools/padlock-flow-test.js b/tools/padlock-flow-test.js
index ce37f1a..4b659aa 100644
--- a/tools/padlock-flow-test.js
+++ b/tools/padlock-flow-test.js
@@ -59,7 +59,7 @@ try {
await sleep(600);
txt = await body();
check('declining lands back home', /receive/i.test(txt) && /balance/i.test(txt), txt.slice(0, 120).replace(/\n+/g, ' | '));
- check('not on the wallets list', !/add wallet|clear all/i.test(txt));
+ check('not on the wallets list', !/add wallet|delete all/i.test(txt));
console.log('\n[the logo still means home]');
await page.evaluate(() => document.querySelector('.brand')?.click());