diff options
| author | Adam Soltys <[email protected]> | 2026-11-06 23:38:59 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-11-06 23:38:59 -0700 |
| commit | c481e5389e801f7b5fc4902a748aebcf79025607 (patch) | |
| tree | 701370aef413562a67c51ea2db09f39bab6a8dda /tools | |
| parent | 5e315005b72a8e9e6670f10b1d30b532763f7fe6 (diff) | |
| download | coinosv3-c481e5389e801f7b5fc4902a748aebcf79025607.tar.gz coinosv3-c481e5389e801f7b5fc4902a748aebcf79025607.zip | |
Under the "Sign in" heading the ways in just name themselves: Seed phrase, Passkey, Google, Nostr. "I think we can remove 'Sign in' from all the sign in buttons since it's at the top in the heading" (Adam, 2026-11-06). frontDoorSignin takes { short } and the sign-in step asks for it; the coinos.io move page (under "or") and the sign-in sheet in Messages keep the full "Sign in with …" labels, where nothing above says it. "Migrate a coinos account" is unchanged. Tests wait for the list by its last door
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6Ts5Tktega8VbLg31q
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/onboard-backup-test.js | 6 | ||||
| -rw-r--r-- | tools/onboard-migrate-door-test.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/onboard-backup-test.js b/tools/onboard-backup-test.js index c7221fd..3eefb02 100644 --- a/tools/onboard-backup-test.js +++ b/tools/onboard-backup-test.js @@ -47,10 +47,10 @@ async function signIn() { // sign-in ways are one step in await waitText(page, 'sign in to an existing account'); await page.evaluate(() => document.getElementById('onb-signin')?.click()); - await waitText(page, 'sign in with nostr'); + await waitText(page, 'migrate a coinos account'); const sk = generateSecretKey(); const nsec = bech32.encode('nsec', bech32.toWords(sk), 1000); - await click(page, 'sign in with nostr'); + await click(page, 'nostr'); await waitText(page, 'log in with nostr'); await page.waitForSelector('input[placeholder*="nsec" i], textarea[placeholder*="nsec" i]', { timeout: 15000 }); await page.type('input[placeholder*="nsec" i], textarea[placeholder*="nsec" i]', nsec); @@ -107,7 +107,7 @@ try { await page.reload({ waitUntil: 'domcontentloaded' }); await waitText(page, 'sign in to an existing account'); await page.evaluate(() => document.getElementById('onb-signin')?.click()); - await waitText(page, 'sign in with nostr'); + await waitText(page, 'migrate a coinos account'); const door = await page.evaluate(() => { const btns = [...document.querySelectorAll('button')].filter((b) => b.offsetParent && b.textContent.trim()); const b = document.getElementById('onb-restore'); diff --git a/tools/onboard-migrate-door-test.js b/tools/onboard-migrate-door-test.js index 6328919..ac2252c 100644 --- a/tools/onboard-migrate-door-test.js +++ b/tools/onboard-migrate-door-test.js @@ -31,7 +31,7 @@ try { check('the front door paints', await waitText(page, 'create a new wallet')); // the sign-in ways (migrating included) wait behind "Sign in to an existing account" await page.click('#onb-signin'); - await waitText(page, 'sign in with seed phrase', 5000); + await waitText(page, 'migrate a coinos account', 5000); const btns = await visible(page); const iMigrate = btns.findIndex((b) => b.id === 'onb-migrate'); const iLastSignin = btns.map((b) => /sign in/i.test(b.text)).lastIndexOf(true); @@ -47,7 +47,7 @@ try { doors.map((b) => b.text).join(' | ')); await page.reload({ waitUntil: 'domcontentloaded' }); check('a refresh stays on the move page', await waitText(page, 'move your coinos.io account', 8000)); - check('Back returns to the sign-in choices', await clickText(page, 'back') && await waitText(page, 'sign in with seed phrase', 5000)); + check('Back returns to the sign-in choices', await clickText(page, 'back') && await waitText(page, 'migrate a coinos account', 5000)); const forgot = await page.evaluate(() => !localStorage.getItem('btc-wallet-migrate-link')); check('…and forgets the intent', forgot); await page.click('#onb-migrate'); |
