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
fix(e2e): dismiss late walkthrough during reset
Steven Enamakel50fcd51afd6a
diff --git a/app/test/e2e/helpers/reset-app.ts b/app/test/e2e/helpers/reset-app.tsindex 131f1eef7c..366b401b1d 100644--- a/app/test/e2e/helpers/reset-app.ts+++ b/app/test/e2e/helpers/reset-app.ts@@ -48,6 +48,36 @@ function stepLog(message: string): void {console.log(`[resetApp][${new Date().toISOString()}] ${message}`);}+/** Dismiss the Joyride tour if it starts after the home route becomes ready. */+async function dismissLateWalkthrough(): Promise<void> {+ const appeared = await browser+ .waitUntil(+ async () =>+ Boolean(+ await browser+ .execute(() => document.querySelector('[role="tooltip"]') !== null)+ .catch(() => false)+ ),+ { timeout: 4_000, interval: 250, timeoutMsg: 'waiting for a walkthrough tooltip' }+ )+ .then(() => true)+ .catch(() => false);+ if (!appeared) return;++ const dismissed = await dismissWalkthroughIfVisible(5_000);+ const stillVisible = await browser+ .execute(() => document.querySelector('[role="tooltip"]') !== null)+ .catch(() => false);+ if (stillVisible) {+ throw new Error(+ dismissed+ ? 'walkthrough tooltip remained visible after Skip tour'+ : 'walkthrough tooltip appeared without a dismissible Skip tour button'+ );+ }+ stepLog('Dismissed walkthrough after home route became ready');+}+/*** Wipe sidecar + renderer state and (by default) re-auth + onboard.*@@ -249,9 +279,11 @@ export async function resetApp(userId: string, options: ResetAppOptions = {}): PstepLog('Home page still not reached after retry — proceeding anyway');} else {stepLog(`Home page confirmed on retry: "${retryHome}"`);+ await dismissLateWalkthrough();}} else {stepLog(`Home page confirmed: "${homeText}"`);+ await dismissLateWalkthrough();}stepLog('Reset + onboarding complete');diff --git a/app/test/e2e/specs/settings-channels-permissions.spec.ts b/app/test/e2e/specs/settings-channels-permissions.spec.tsindex bd7a0aaf30..996a8bd39a 100644--- a/app/test/e2e/specs/settings-channels-permissions.spec.ts+++ b/app/test/e2e/specs/settings-channels-permissions.spec.ts@@ -54,6 +54,11 @@ describe('Settings - Channels & Permissions', () => {});it('allows switching default messaging channel (13.2.1)', async () => {+ // resetApp must finish dismissing the post-onboarding Joyride before a+ // settings flow starts; otherwise the spotlight overlay intercepts the+ // hash navigation and leaves the app on Chat.+ expect(await textExists('Skip tour')).toBe(false);+// The messaging panel now offers "Set as default" only on *connected*// channels. In a fresh workspace the only always-connected channel is Web// (the built-in chat), so we make Telegram the default first — that turns