The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(playwright): update sign in through onboarding flow
Steven Enamakel1fec881b3a00
diff --git a/app/test/playwright/specs/logout-relogin-onboarding.spec.ts b/app/test/playwright/specs/logout-relogin-onboarding.spec.tsindex e4b437d474..84d6414c42 100644--- a/app/test/playwright/specs/logout-relogin-onboarding.spec.ts+++ b/app/test/playwright/specs/logout-relogin-onboarding.spec.ts@@ -39,7 +39,14 @@ async function readOnboardingCompleted(): Promise<boolean> {* onboarding screen to wait for. Callers assert the landing instead.*/async function signInThroughOnboarding(page: Page, userId: string): Promise<void> {- await signInViaBypassUser(page, userId, { onboardingCompleted: false });+ const payload = Buffer.from(+ JSON.stringify({ sub: userId, userId, exp: Math.floor(Date.now() / 1000) + 3600 })+ ).toString('base64url');+ await callCoreRpc('openhuman.auth_store_session', {+ token: `eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.${payload}.sig`,+ userId,+ user: { _id: userId, id: userId, displayName: 'Playwright User' },+ });await page.goto('/#/onboarding/welcome');await waitForAppReady(page);}