diff --git a/cli/console/accounts.ts b/cli/console/accounts.ts index eedf2cda..35f8e011 100644 --- a/cli/console/accounts.ts +++ b/cli/console/accounts.ts @@ -140,7 +140,7 @@ export async function switchTeam(page: Page, name: string, listed: string[], ms: const real = await accName(it.loc), role = await realRole(it.loc); if (!switchAllowed(real, role, listed)) { await closeMenu(page); return false; } await it.loc.click(); - await page.waitForLoadState('domcontentloaded').catch(() => { /* same page */ }); + await page.waitForLoadState('domcontentloaded', { timeout: ms }).catch(() => { /* same page, or slow: read what is there */ }); await Bun.sleep(300); return true; } diff --git a/cli/console/debug.ts b/cli/console/debug.ts new file mode 100644 index 00000000..fe67c211 --- /dev/null +++ b/cli/console/debug.ts @@ -0,0 +1,123 @@ +// Diagnostics of a console page storebound does not recognise (`console fill`): what is on the page, written to +// .storebound/console-debug/