aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app.js4
-rw-r--r--tools/account-access-test.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index b6721da..dc17a37 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1728,7 +1728,9 @@ async function activateAccount(acc, opts = {}) {
// by the Accounts screen and the profile page.
function signInAnother() {
clearSeedDrafts();
- ui.fromWallet = true; ui.unlockError = ''; ui.unlockTab = 'import'; ui.screen = 'unlock';
+ ui.fromWallet = true; ui.unlockError = ''; ui.screen = 'unlock';
+ // Starts on Create new (its Generate button), not the seed-import box.
+ ui.unlockTab = 'create'; ui.createStep = 'gen'; ui.draftMnemonic = ''; ui.confirm = [];
ui.profilePk = null; ui.profEdit = null; ui.profEditFilled = false; ui.chatOpen = false;
render();
}
diff --git a/tools/account-access-test.js b/tools/account-access-test.js
index ad6ce3f..d2685de 100644
--- a/tools/account-access-test.js
+++ b/tools/account-access-test.js
@@ -36,6 +36,8 @@ try {
check('avatar opens Accounts with sign-in and logout', await page.evaluate(() => ['Accounts', 'Sign into another account', 'Log out'].every((s) => document.body.innerText.includes(s))));
const saved = await page.evaluate(() => localStorage.getItem('btc-wallet-watch'));
await click('Sign into another account');
+ check('sign-in opens on Create new, not the seed import box', await page.evaluate(() =>
+ document.querySelector('.tabs .active')?.textContent.includes('Create new') && !document.querySelector('.card textarea')));
// Expand the Nostr login card without supplying a private key.
await click('Sign in with Nostr');
await page.waitForSelector('input[placeholder="nsec, private key, or bunker://…"]');