Skip to content

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

test(e2e): add connector contract helper and specs

Steven Enamakel37251d70beb6
diff --git a/app/test/e2e/helpers/connector-contract.ts b/app/test/e2e/helpers/connector-contract.ts
index 0a87809bfb..a409838fb6 100644
--- a/app/test/e2e/helpers/connector-contract.ts
+++ b/app/test/e2e/helpers/connector-contract.ts
@@ -132,18 +132,6 @@ export function runConnectorContract(config: ConnectorContractConfig): void {
console.log(`${LOG} PASS: connected state persists`);
});
- // Renamed from the misleading "composio_sync RPC routes to mock backend"
- // (plan.md §3): composio_sync short-circuits with no HTTP for connectors
- // without a native provider, so the real, verifiable contract is that the
- // call does not tear down the WebDriver session.
- it('composio_sync does not tear down the session', async function () {
- this.timeout(30_000);
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_sync', { toolkit: slug });
- await assertSessionNotNuked();
- console.log(`${LOG} PASS: sync does not nuke session`);
- });
-
it('composio_execute routes a basic task', async function () {
this.timeout(30_000);
clearRequestLog();
diff --git a/app/test/e2e/specs/connector-discord-composio.spec.ts b/app/test/e2e/specs/connector-discord-composio.spec.ts
index 78480d74bb..34f90604f2 100644
--- a/app/test/e2e/specs/connector-discord-composio.spec.ts
+++ b/app/test/e2e/specs/connector-discord-composio.spec.ts
@@ -114,18 +114,6 @@ describe('Discord (Composio) connector flow', () => {
console.log(`${LOG} PASS: connected state persists`);
});
- it('composio_sync does not tear down the session', async function () {
- this.timeout(30_000);
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_sync', { toolkit: TOOLKIT_SLUG });
- // syncReq URL check removed — composio_sync does no HTTP for
- // connectors without a native provider (the RPC short-circuits). The
- // assertSessionNotNuked() below covers the real intent: the call
- // does not tear down the WebDriver session.
- await assertSessionNotNuked();
- console.log(`${LOG} PASS: sync does not nuke session`);
- });
-
it('composio_execute routes a basic task', async function () {
this.timeout(30_000);
clearRequestLog();
@@ -134,7 +122,7 @@ describe('Discord (Composio) connector flow', () => {
action: 'DISCORD_LIST_SERVERS',
params: {},
});
- // execReq URL check removed (see composio_sync comment above).
+ // execReq URL check removed.
await assertSessionNotNuked();
console.log(`${LOG} PASS: execute routed`);
});
diff --git a/app/test/e2e/specs/connector-github.spec.ts b/app/test/e2e/specs/connector-github.spec.ts
index 561ab7fd7a..4ab12cdcb7 100644
--- a/app/test/e2e/specs/connector-github.spec.ts
+++ b/app/test/e2e/specs/connector-github.spec.ts
@@ -113,18 +113,6 @@ describe('GitHub Composio connector flow', () => {
console.log(`${LOG} PASS: connected state persists`);
});
- it('composio_sync does not tear down the session', async function () {
- this.timeout(30_000);
- clearRequestLog();
-
- await callOpenhumanRpc('openhuman.composio_sync', { toolkit: TOOLKIT_SLUG });
- // syncReq URL check dropped — composio_sync short-circuits with 'no
- // native provider' for connectors without a Rust-side provider, so no
- // HTTP request is logged. assertSessionNotNuked() covers the real
- // intent: the RPC does not tear down the WebDriver session.
- await assertSessionNotNuked();
- });
-
it('composio_execute routes a basic task', async function () {
this.timeout(30_000);
clearRequestLog();
@@ -134,7 +122,7 @@ describe('GitHub Composio connector flow', () => {
action: 'GITHUB_LIST_REPOS',
params: {},
});
- // execReq URL check removed (see composio_sync comment above).
+ // execReq URL check removed.
console.log(`${LOG} PASS: composio_execute routed to mock`);
});
diff --git a/app/test/e2e/specs/connector-gmail-composio.spec.ts b/app/test/e2e/specs/connector-gmail-composio.spec.ts
index bcbf6abc1b..53120f0f76 100644
--- a/app/test/e2e/specs/connector-gmail-composio.spec.ts
+++ b/app/test/e2e/specs/connector-gmail-composio.spec.ts
@@ -97,14 +97,6 @@ describe('Gmail (Composio) connector flow', () => {
console.log(`${LOG} PASS: connected state persists`);
});
- it('composio_sync does not tear down the session', async function () {
- this.timeout(30_000);
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_sync', { toolkit: TOOLKIT_SLUG });
- // syncReq URL check dropped — see connector-github.spec.ts.
- await assertSessionNotNuked();
- });
-
it('composio_execute routes a basic task', async function () {
this.timeout(30_000);
clearRequestLog();
@@ -113,7 +105,7 @@ describe('Gmail (Composio) connector flow', () => {
action: 'GMAIL_FETCH_EMAILS',
params: {},
});
- // execReq URL check removed (see composio_sync comment above).
+ // execReq URL check removed.
console.log(`${LOG} PASS: composio_execute routed`);
});
diff --git a/app/test/e2e/specs/connector-jira.spec.ts b/app/test/e2e/specs/connector-jira.spec.ts
index 85c22cc52d..f4905399ce 100644
--- a/app/test/e2e/specs/connector-jira.spec.ts
+++ b/app/test/e2e/specs/connector-jira.spec.ts
@@ -175,18 +175,6 @@ describe('Jira Composio connector flow', () => {
console.log(`${LOG} PASS: connected state persists`);
});
- it('composio_sync does not tear down the session', async function () {
- this.timeout(30_000);
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_sync', { toolkit: TOOLKIT_SLUG });
- // syncReq URL check removed — composio_sync does no HTTP for
- // connectors without a native provider (the RPC short-circuits). The
- // assertSessionNotNuked() below covers the real intent: the call
- // does not tear down the WebDriver session.
- await assertSessionNotNuked();
- console.log(`${LOG} PASS: sync does not nuke session`);
- });
-
it('composio_execute routes a basic task', async function () {
this.timeout(30_000);
clearRequestLog();
@@ -195,7 +183,7 @@ describe('Jira Composio connector flow', () => {
action: 'JIRA_LIST_ISSUES',
params: {},
});
- // execReq URL check removed (see composio_sync comment above).
+ // execReq URL check removed.
console.log(`${LOG} PASS: execute routed`);
});
diff --git a/app/test/e2e/specs/connector-session-guard.spec.ts b/app/test/e2e/specs/connector-session-guard.spec.ts
index 28e2beb9dd..767c5f3ea0 100644
--- a/app/test/e2e/specs/connector-session-guard.spec.ts
+++ b/app/test/e2e/specs/connector-session-guard.spec.ts
@@ -120,19 +120,6 @@ describe('Composio connector session guard (cross-cutting, #2286)', () => {
console.log(`${LOG} PASS: 500 on delete does not log user out`);
});
- it('500 on composio/sync does NOT log user out (#2286)', async function () {
- this.timeout(60_000);
- setMockBehavior('composioSyncFails', '1');
-
- for (const slug of GUARD_TOOLKITS) {
- clearRequestLog();
- await callOpenhumanRpc('openhuman.composio_sync', { toolkit: slug });
- }
-
- await assertSessionNotNuked();
- console.log(`${LOG} PASS: 500 on sync does not log user out`);
- });
-
it('navigating to Skills page with FAILED connections does NOT log user out (#2286)', async function () {
this.timeout(60_000);
// Set all connections as FAILED
diff --git a/app/test/playwright/specs/connector-gmail-composio.spec.ts b/app/test/playwright/specs/connector-gmail-composio.spec.ts
index 27ca8929f9..2acebeda87 100644
--- a/app/test/playwright/specs/connector-gmail-composio.spec.ts
+++ b/app/test/playwright/specs/connector-gmail-composio.spec.ts
@@ -189,11 +189,6 @@ test.describe('Gmail connector', () => {
expect(hit?.status).toBe('ACTIVE');
});
- test.skip('keeps the session alive after composio_sync', async ({ page }) => {
- await callCoreRpc('openhuman.composio_sync', { connection_id: CONNECTION_ID });
- await assertSessionNotNuked(page);
- });
-
test('routes composio_execute without blanking the app', async ({ page }) => {
await callCoreRpc('openhuman.composio_execute', { tool: ACTION, arguments: {} });
await assertSessionNotNuked(page);