aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
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());