Skip to content

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

fix(test): update AppWalkthrough test to match new walkthrough flow

Steven Enamakel21ef4f201554
diff --git a/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx b/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
index da0c7a5542..037c45d89d 100644
--- a/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
+++ b/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
@@ -548,8 +548,10 @@ describe('createWalkthroughSteps', () => {
const navigate = vi.fn();
const steps = createWalkthroughSteps(navigate);
- // Steps: 2=chat, 3=integrations, 4=channels, 5=settings, 6=chat-tab, 11=chat-welcome
- const crossPageIndices = [2, 3, 4, 5, 6, 11];
+ // Steps: 2=chat, 3=integrations, 4=channels, 5=settings, 6=chat-tab, 10=chat-welcome.
+ // The tail shifted down by one when the Human nav step was dropped (Human
+ // has no nav row — the chat composer's idle button opens it).
+ const crossPageIndices = [2, 3, 4, 5, 6, 10];
for (const idx of crossPageIndices) {
expect(typeof steps[idx].before, `step[${idx}] should have a before fn`).toBe('function');
}
@@ -559,7 +561,7 @@ describe('createWalkthroughSteps', () => {
const navigate = vi.fn();
const steps = createWalkthroughSteps(navigate);
- const homeOnlyIndices = [0, 1, 7, 8, 9, 10];
+ const homeOnlyIndices = [0, 1, 7, 8, 9];
for (const idx of homeOnlyIndices) {
expect(steps[idx].before, `step[${idx}] should not have a before fn`).toBeUndefined();
}
@@ -571,7 +573,7 @@ describe('createWalkthroughSteps', () => {
{ idx: 4, route: null, target: 'skills-channels' },
{ idx: 5, route: '/settings', target: 'settings-menu' },
{ idx: 6, route: '/chat', target: 'tab-chat' },
- { idx: 11, route: '/chat', target: 'chat-agent-panel' },
+ { idx: 10, route: '/chat', target: 'chat-agent-panel' },
])('before hook for step $idx calls navigate("$route")', async ({ idx, route, target }) => {
const navigate = vi.fn();