aboutsummaryrefslogtreecommitdiffstats
path: root/tools/onboard-backup-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/onboard-backup-test.js')
-rw-r--r--tools/onboard-backup-test.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/onboard-backup-test.js b/tools/onboard-backup-test.js
index 3eefb02..8fc1071 100644
--- a/tools/onboard-backup-test.js
+++ b/tools/onboard-backup-test.js
@@ -87,8 +87,11 @@ try {
// words on screen at once, with what they are.
await page.evaluate(() => document.getElementById('onb-create')?.click());
await sleep(600);
- // the warning box that said "write these 12 words down" is gone
- // (2026-11-06): the words themselves are the explanation
+ // a heads-up first, no warning icon (2026-11-07): sensitive words next
+ const intro = await page.evaluate(() => ({ words: document.querySelectorAll('.words .w').length, text: document.body.innerText, warn: !!document.querySelector('.warn-box') }));
+ check('the words wait behind a heads-up to write them down', intro.words === 0 && /write them down/i.test(intro.text) && !intro.warn && !/⚠/.test(intro.text));
+ await page.evaluate(() => document.getElementById('seed-intro-next')?.click());
+ await sleep(400);
const made = await page.evaluate(() => document.querySelectorAll('.words .w .t').length);
check('the way in shows what the wallet actually is: its twelve words', made === 12, made + ' words');
await page.close();
@@ -135,6 +138,9 @@ try {
{
const { page, ctx, seed } = await signIn();
check('a sign-in is asked to write the phrase down', await waitText(page, 'write down your recovery phrase'));
+ check('...with the words behind Show seed phrase', await page.evaluate(() => !document.querySelector('.words')));
+ await click(page, 'show seed phrase');
+ await sleep(300);
const shown = await page.evaluate(() => [...document.querySelectorAll('.words .w .t')].map((e) => e.textContent.trim()));
check('...and the real twelve words are on screen', shown.length === 12 && shown.join(' ') === seed,
shown.length + ' words' + (shown.join(' ') === seed ? ', matching the derived seed' : ', WRONG'));