Skip to content

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

fix(walkthrough): navigate to explicit connections tabs during tour

Steven Enamakel2758b64f6332
diff --git a/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx b/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
index c3a833664f..edb5a4b03d 100644
--- a/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
+++ b/app/src/components/walkthrough/__tests__/AppWalkthrough.test.tsx
@@ -567,8 +567,8 @@ describe('createWalkthroughSteps', () => {
it.each([
{ idx: 0, route: '/chat', target: 'chat-agent-panel' },
- { idx: 1, route: '/connections', target: 'skills-grid' },
- { idx: 2, route: null, target: 'skills-channels' },
+ { idx: 1, route: '/connections?tab=composio', target: 'skills-grid' },
+ { idx: 2, route: '/connections?tab=channels', target: 'skills-channels' },
{ idx: 3, route: '/settings', target: 'settings-menu' },
{ idx: 4, route: '/chat', target: 'tab-chat' },
{ idx: 6, route: '/chat', target: 'chat-agent-panel' },
diff --git a/app/src/components/walkthrough/walkthroughSteps.ts b/app/src/components/walkthrough/walkthroughSteps.ts
index 09dc0b6c0a..ec4cb34a43 100644
--- a/app/src/components/walkthrough/walkthroughSteps.ts
+++ b/app/src/components/walkthrough/walkthroughSteps.ts
@@ -80,7 +80,7 @@ export function createWalkthroughSteps(
placement: 'top',
skipBeacon: true,
before: async () => {
- navigate('/connections');
+ navigate('/connections?tab=composio');
await waitForTarget('skills-grid');
},
},
@@ -93,6 +93,7 @@ export function createWalkthroughSteps(
placement: 'bottom',
skipBeacon: true,
before: async () => {
+ navigate('/connections?tab=channels');
await waitForTarget('skills-channels');
},
},
diff --git a/app/test/e2e/specs/guided-tour-gates.spec.ts b/app/test/e2e/specs/guided-tour-gates.spec.ts
index c67a676bdf..9c52777410 100644
--- a/app/test/e2e/specs/guided-tour-gates.spec.ts
+++ b/app/test/e2e/specs/guided-tour-gates.spec.ts
@@ -172,7 +172,7 @@ describe('Guided tour — gates and resume behaviour (#1215)', function () {
).toBe(true);
});
- it('tour navigates to /connections and highlights skills-grid after 1 Next click', async () => {
+ it('tour opens the Apps tab and highlights skills-grid after 1 Next click', async () => {
await navigateViaHash('/home');
expect(await armWalkthrough()).toBe(true);
await browser.refresh();
@@ -180,7 +180,7 @@ describe('Guided tour — gates and resume behaviour (#1215)', function () {
await advanceTourSteps(1);
await browser.waitUntil(
async () =>
- String(await browser.execute(() => window.location.hash)).includes('/connections'),
+ String(await browser.execute(() => window.location.hash)).includes('/connections?tab=composio'),
{ timeout: 15_000, timeoutMsg: 'tour did not navigate to /connections after one step' }
);
expect(
@@ -208,7 +208,11 @@ describe('Guided tour — gates and resume behaviour (#1215)', function () {
expect(await waitForTourTooltip(10_000)).toBe(true);
await advanceTourSteps(6);
- const hasLastStepTitle = await textExists("You're all set!");
+ const hasLastStepTitle = await browser.waitUntil(() => textExists("You're all set!"), {
+ timeout: 15_000,
+ interval: 250,
+ timeoutMsg: 'final walkthrough step title did not render after its async setup',
+ });
expect(hasLastStepTitle).toBe(true);
const skipVisible = await browser.execute(() => {