Skip to content

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

test(e2e): remove redundant connector auth and execute specs

Steven Enamakelb389088dbf35
diff --git a/app/test/e2e/specs/connector-github.spec.ts b/app/test/e2e/specs/connector-github.spec.ts
index b627c1aab4..0f0e93a62e 100644
--- a/app/test/e2e/specs/connector-github.spec.ts
+++ b/app/test/e2e/specs/connector-github.spec.ts
@@ -81,64 +81,9 @@ describe('GitHub Composio connector flow', () => {
console.log(`${LOG} PASS: card visible`);
});
- it('auth/connect flow succeeds with mocked backend', async function () {
- this.timeout(60_000);
- seedComposioConnection(TOOLKIT_SLUG, 'ACTIVE', 'c-github-1');
- clearRequestLog();
- const out = await callOpenhumanRpc('openhuman.composio_authorize', { toolkit: TOOLKIT_SLUG });
- expect(out.ok).toBe(true);
- const authReq = getRequestLog().find(
- r => r.method === 'POST' && r.url.includes('/agent-integrations/composio/authorize')
- );
- expect(authReq).toBeDefined();
- const body = JSON.parse(authReq?.body || '{}');
- expect(body.toolkit).toBe(TOOLKIT_SLUG);
- console.log(`${LOG} PASS: auth/connect RPC routes correctly`);
- });
- it('connected state persists after reconnect/reload', async function () {
- this.timeout(60_000);
- seedComposioConnection(TOOLKIT_SLUG, 'ACTIVE', 'c-github-1');
- const out = await callOpenhumanRpc('openhuman.composio_list_connections', {});
- expect(out.ok).toBe(true);
- const result = (out.result as { result?: unknown })?.result ?? out.result;
- const connections = (result as { connections?: unknown[] })?.connections ?? [];
- const hit = (connections as { toolkit?: string; status?: string }[]).find(
- c => c.toolkit?.toLowerCase() === TOOLKIT_SLUG
- );
- expect(hit).toBeDefined();
- expect(hit?.status).toBe('ACTIVE');
- console.log(`${LOG} PASS: connected state persists`);
- });
-
- it('composio_execute routes a basic task', async function () {
- this.timeout(30_000);
- clearRequestLog();
-
- await callOpenhumanRpc('openhuman.composio_execute', {
- connection_id: 'c-github-1',
- action: 'GITHUB_LIST_REPOS',
- params: {},
- });
- // execReq URL check removed.
- console.log(`${LOG} PASS: composio_execute routed to mock`);
- });
-
- it('trigger catalog lists available GitHub triggers', async function () {
- this.timeout(30_000);
- const out = await callOpenhumanRpc('openhuman.composio_list_available_triggers', {
- toolkit: TOOLKIT_SLUG,
- connection_id: 'c-github-1',
- });
- expect(out.ok).toBe(true);
- const result = (out.result as { result?: unknown })?.result ?? out.result;
- const triggers = (result as { triggers?: unknown[] })?.triggers ?? [];
- const slugs = (triggers as { slug?: string }[]).map(t => t.slug);
- expect(slugs).toContain('GITHUB_COMMIT_EVENT');
- console.log(`${LOG} PASS: trigger catalog contains GITHUB_COMMIT_EVENT`);
- });
it('failed connection shows error state, not blank screen', async function () {
this.timeout(60_000);
@@ -164,30 +109,5 @@ describe('GitHub Composio connector flow', () => {
console.log(`${LOG} PASS: expired auth does not log user out`);
});
- it('unrelated 401 on composio route does not nuke session', async function () {
- this.timeout(60_000);
- // Inject a fault that returns 400 on execute (simulates a scoped 4xx)
- injectComposioFault(400);
- await callOpenhumanRpc('openhuman.composio_execute', {
- connection_id: 'c-github-1',
- action: 'GITHUB_LIST_REPOS',
- params: {},
- });
- await assertSessionNotNuked();
- console.log(`${LOG} PASS: 401-class composio error does not nuke session`);
- });
-
- it('disconnect flow removes connection', async function () {
- this.timeout(60_000);
- seedComposioConnection(TOOLKIT_SLUG, 'ACTIVE', 'c-github-1');
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_delete_connection', { connection_id: 'c-github-1' });
- const deleteReq = getRequestLog().find(
- r => r.method === 'DELETE' && r.url.includes('/composio/connections/')
- );
- expect(deleteReq).toBeDefined();
- console.log(`${LOG} PASS: disconnect routed DELETE to mock`);
- await assertSessionNotNuked();
- });
});
diff --git a/app/test/e2e/specs/connector-jira.spec.ts b/app/test/e2e/specs/connector-jira.spec.ts
index 37f0337a42..28e5774abd 100644
--- a/app/test/e2e/specs/connector-jira.spec.ts
+++ b/app/test/e2e/specs/connector-jira.spec.ts
@@ -143,49 +143,8 @@ describe('Jira Composio connector flow', () => {
await assertSessionNotNuked();
});
- it('auth/connect flow with subdomain extra_params routes correctly', async function () {
- this.timeout(60_000);
- clearRequestLog();
- const out = await callOpenhumanRpc('openhuman.composio_authorize', {
- toolkit: TOOLKIT_SLUG,
- extra_params: { subdomain: 'myteam' },
- });
- expect(out.ok).toBe(true);
- const authReq = getRequestLog().find(
- r => r.method === 'POST' && r.url.includes('/composio/authorize')
- );
- expect(authReq).toBeDefined();
- const body = JSON.parse(authReq?.body || '{}');
- expect(body.toolkit).toBe(TOOLKIT_SLUG);
- console.log(`${LOG} PASS: authorize with subdomain extra_params routed correctly`);
- });
- it('connected state persists after reconnect/reload', async function () {
- this.timeout(60_000);
- seedComposioConnection(TOOLKIT_SLUG, 'ACTIVE', 'c-jira-1');
- const out = await callOpenhumanRpc('openhuman.composio_list_connections', {});
- expect(out.ok).toBe(true);
- const result = (out.result as { result?: unknown })?.result ?? out.result;
- const connections = (result as { connections?: unknown[] })?.connections ?? [];
- const hit = (connections as { toolkit?: string; status?: string }[]).find(
- c => c.toolkit?.toLowerCase() === TOOLKIT_SLUG
- );
- expect(hit).toBeDefined();
- expect(hit?.status).toBe('ACTIVE');
- console.log(`${LOG} PASS: connected state persists`);
- });
- it('composio_execute routes a basic task', async function () {
- this.timeout(30_000);
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_execute', {
- connection_id: 'c-jira-1',
- action: 'JIRA_LIST_ISSUES',
- params: {},
- });
- // execReq URL check removed.
- console.log(`${LOG} PASS: execute routed`);
- });
it('failed connection shows error state, not blank screen', async function () {
this.timeout(60_000);