Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(e2e): dismiss post-onboarding tour before navigation

Steven Enamakel4a0f37c143a9
diff --git a/app/test/e2e/helpers/shared-flows.ts b/app/test/e2e/helpers/shared-flows.ts
index e18c0ddd3f..c288808132 100644
--- a/app/test/e2e/helpers/shared-flows.ts
+++ b/app/test/e2e/helpers/shared-flows.ts
@@ -763,6 +763,10 @@ export async function walkOnboarding(logPrefix = '[E2E]', maxSteps = 12): Promis
if (status === 'gone') {
console.log(`${logPrefix} Onboarding dismissed after ${step} step(s)`);
await waitForPostOnboardingHome(logPrefix);
+ // Completing routed onboarding starts the app-wide Joyride tour
+ // asynchronously. Dismiss it before a caller navigates, otherwise the
+ // tour's own route transitions can race a spec and take it back to Chat.
+ await dismissWalkthroughIfVisible(8_000);
return;
}
if (status === 'gone-but-onboarding-hash') {