diff options
Diffstat (limited to 'tools/onboard-backup-test.js')
| -rw-r--r-- | tools/onboard-backup-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/onboard-backup-test.js b/tools/onboard-backup-test.js index e7740ae..3433271 100644 --- a/tools/onboard-backup-test.js +++ b/tools/onboard-backup-test.js @@ -75,13 +75,13 @@ try { label: primary ? primary.textContent.trim() : null, labels: btns.map((b) => b.textContent.trim()), order: !!primary && !!signin && primary.getBoundingClientRect().top < signin.getBoundingClientRect().top, - footer: !!document.querySelector('.footer'), + footer: (() => { const f = document.querySelector('.footer'); return f ? { buttons: f.querySelectorAll('button, a').length, selects: f.querySelectorAll('select').length } : null; })(), }; }); check('the way in says what it makes', /wallet/i.test(front.label || ''), front.label || 'missing'); check('...and the only other choice is signing in to one you have', front.order && front.labels.length === 2, front.labels.join(' | ')); - check('...with no footer under them', !front.footer); + check('...with only the language picker under them', !!front.footer && front.footer.buttons === 0 && front.footer.selects === 1, JSON.stringify(front.footer)); // The welcome card is just the title and the buttons now (42c8d4e): the // way in itself says what the wallet is — tapping it puts the twelve // words on screen at once, with what they are. |
