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
chore: files changed app/test/e2e/specs/composio-triggers-flow.spec.ts,app/test/e2e/specs/connector-
Steven Enamakel70002f4918ab
diff --git a/app/test/e2e/specs/composio-triggers-flow.spec.ts b/app/test/e2e/specs/composio-triggers-flow.spec.tsindex 9106513817..96a0ee39d1 100644--- a/app/test/e2e/specs/composio-triggers-flow.spec.ts+++ b/app/test/e2e/specs/composio-triggers-flow.spec.ts@@ -48,61 +48,9 @@ describe('Composio trigger toggles (UI + core RPC)', () => {await stopMockServer();});- it('list_available_triggers returns the seeded Gmail catalog', async () => {- const out = await callOpenhumanRpc('openhuman.composio_list_available_triggers', {- toolkit: 'gmail',- connection_id: 'c1',- });- expect(out.ok).toBe(true);- const result = (out.result as any)?.result ?? out.result;- const triggers = result?.triggers ?? [];- const slugs = triggers.map((t: any) => t.slug);- expect(slugs).toContain('GMAIL_NEW_GMAIL_MESSAGE');- expect(slugs).toContain('SLACK_NEW_MESSAGE');- });-- it('list_triggers starts empty for the seeded user', async () => {- const out = await callOpenhumanRpc('openhuman.composio_list_triggers', {});- expect(out.ok).toBe(true);- const result = (out.result as any)?.result ?? out.result;- expect(result.triggers ?? []).toHaveLength(0);- });-- it('enable_trigger creates a trigger that subsequent list calls observe', async () => {- const enable = await callOpenhumanRpc('openhuman.composio_enable_trigger', {- connection_id: 'c1',- slug: 'GMAIL_NEW_GMAIL_MESSAGE',- });- expect(enable.ok).toBe(true);- const created = (enable.result as any)?.result ?? enable.result;- expect(created.slug).toBe('GMAIL_NEW_GMAIL_MESSAGE');- expect(created.connectionId).toBe('c1');- expect(typeof created.triggerId).toBe('string');- expect(created.triggerId.length).toBeGreaterThan(0);- const list = await callOpenhumanRpc('openhuman.composio_list_triggers', { toolkit: 'gmail' });- const result = (list.result as any)?.result ?? list.result;- expect(result.triggers).toHaveLength(1);- expect(result.triggers[0].slug).toBe('GMAIL_NEW_GMAIL_MESSAGE');- });- it('disable_trigger removes the active trigger', async () => {- const list = await callOpenhumanRpc('openhuman.composio_list_triggers', {});- const beforeResult = (list.result as any)?.result ?? list.result;- const triggerId = beforeResult.triggers[0]?.id;- expect(typeof triggerId).toBe('string');- const disable = await callOpenhumanRpc('openhuman.composio_disable_trigger', {- trigger_id: triggerId,- });- expect(disable.ok).toBe(true);- const out = (disable.result as any)?.result ?? disable.result;- expect(out.deleted).toBe(true);-- const after = await callOpenhumanRpc('openhuman.composio_list_triggers', {});- const afterResult = (after.result as any)?.result ?? after.result;- expect(afterResult.triggers ?? []).toHaveLength(0);- });it('Triggers section renders in the Composio modal for an ACTIVE connection', async () => {// Seed one active trigger so the modal shows both the enabled anddiff --git a/app/test/e2e/specs/connector-composio-contract.spec.ts b/app/test/e2e/specs/connector-composio-contract.spec.tsindex 89282135a0..e5e5bf2b64 100644--- a/app/test/e2e/specs/connector-composio-contract.spec.ts+++ b/app/test/e2e/specs/connector-composio-contract.spec.ts@@ -10,47 +10,7 @@import { type ConnectorContractConfig, runConnectorContract } from '../helpers/connector-contract';const TOOLKITS: ConnectorContractConfig[] = [- {- name: 'Airtable',- slug: 'airtable',- idBase: 'c-airtable',- executeAction: 'AIRTABLE_LIST_BASES',- },- { name: 'Asana', slug: 'asana', idBase: 'c-asana', executeAction: 'ASANA_LIST_TASKS' },- { name: 'ClickUp', slug: 'clickup', idBase: 'c-clickup', executeAction: 'CLICKUP_LIST_TASKS' },- {- name: 'Confluence',- slug: 'confluence',- idBase: 'c-confluence',- executeAction: 'CONFLUENCE_LIST_PAGES',- },- {- name: 'Google Calendar',- slug: 'googlecalendar',- idBase: 'c-gcal',- executeAction: 'GOOGLECALENDAR_LIST_EVENTS',- },- {- name: 'Google Drive',- slug: 'googledrive',- idBase: 'c-gdrive',- executeAction: 'GOOGLEDRIVE_LIST_FILES',- },- {- name: 'Google Sheets',- slug: 'googlesheets',- idBase: 'c-gsheets',- executeAction: 'GOOGLESHEETS_LIST_SPREADSHEETS',- },- { name: 'Notion', slug: 'notion', idBase: 'c-notion', executeAction: 'NOTION_LIST_PAGES' },{ name: 'Slack', slug: 'slack', idBase: 'c-slack', executeAction: 'SLACK_LIST_CHANNELS' },- { name: 'Todoist', slug: 'todoist', idBase: 'c-todoist', executeAction: 'TODOIST_LIST_PROJECTS' },- {- name: 'YouTube',- slug: 'youtube',- idBase: 'c-youtube',- executeAction: 'YOUTUBE_LIST_PLAYLISTS',- },];for (const toolkit of TOOLKITS) {diff --git a/app/test/e2e/specs/notifications.spec.ts b/app/test/e2e/specs/notifications.spec.tsindex fdd9e1c746..c04b16b223 100644--- a/app/test/e2e/specs/notifications.spec.ts+++ b/app/test/e2e/specs/notifications.spec.ts@@ -86,86 +86,9 @@ describe('Notifications', () => {await stopMockServer();});- it('notification_ingest creates a new notification via core RPC', async () => {- // Required params: provider, title, body, raw_payload (no id/category/timestamp_ms).- const result = await callOpenhumanRpc('openhuman.notification_ingest', {- provider: 'e2e',- title: 'E2E Test Notification',- body: 'Created by the notifications E2E spec',- raw_payload: {},- });- stepLog('notification_ingest result', { ok: result.ok, result: result.result });- expect(result.ok).toBe(true);- // handle_ingest returns Outcome::new(..., vec![]) → bare value (no extra .result wrapper)- const payload = (result.result as any) ?? {};- expect(payload.skipped).not.toBe(true);- expect(typeof payload.id).toBe('string');- ingestedNotifId = payload.id as string;- stepLog('captured notification id', { id: ingestedNotifId });- });-- it('notification_list returns the ingested notification', async () => {- const result = await callOpenhumanRpc('openhuman.notification_list', { limit: 20 });- stepLog('notification_list result', { ok: result.ok, result: result.result });- expect(result.ok).toBe(true);-- // handle_list returns bare value → result.result is {items: [...], unread_count: n}- const items: unknown[] = (result.result as any)?.items ?? [];- const found = items.some(- (n: unknown) =>- typeof n === 'object' &&- n !== null &&- (n as Record<string, unknown>)['title'] === 'E2E Test Notification'- );- expect(found).toBe(true);- });-- it('notification_mark_read transitions notification status', async () => {- const before = await callOpenhumanRpc('openhuman.notification_stats', {});- expect(before.ok).toBe(true);- // handle_stats returns bare value → result.result is {total, unread, ...}- const beforeStats = (before.result as any) ?? {};- const initialUnread = getUnreadCount(beforeStats);- // Use the UUID from the ingest test; fall back to a fresh ingest if needed.- let notifId = ingestedNotifId;- if (!notifId) {- stepLog('no cached notifId — ingesting a fresh notification for mark_read');- const fresh = await callOpenhumanRpc('openhuman.notification_ingest', {- provider: 'e2e',- title: 'E2E Mark Read Fallback',- body: 'Fallback notification for mark_read test',- raw_payload: {},- });- notifId = (fresh.result as any)?.id as string | undefined;- }- expect(notifId).toBeDefined();-- const result = await callOpenhumanRpc('openhuman.notification_mark_read', { id: notifId });- stepLog('notification_mark_read result', { ok: result.ok, result: result.result });- expect(result.ok).toBe(true);- const after = await callOpenhumanRpc('openhuman.notification_stats', {});- expect(after.ok).toBe(true);- const afterStats = (after.result as any) ?? {};- const finalUnread = getUnreadCount(afterStats);- if (initialUnread > 0) {- expect(finalUnread).toBeLessThan(initialUnread);- } else {- expect(finalUnread).toBe(0);- }- });- it('notification_stats returns aggregate statistics', async () => {- const result = await callOpenhumanRpc('openhuman.notification_stats', {});- stepLog('notification_stats result', { ok: result.ok, result: result.result });- expect(result.ok).toBe(true);- // handle_stats returns bare value → result.result is {total, unread, unscored, ...}- const stats = (result.result as any) ?? {};- // Stats must have at least a numeric total or unread count.- const hasNumericField = Object.values(stats).some(v => typeof v === 'number');- expect(hasNumericField).toBe(true);- });it('Notifications page renders integration notifications', async () => {if (!supportsExecuteScript()) {diff --git a/app/test/e2e/specs/probe.txt b/app/test/e2e/specs/probe.txtdeleted file mode 100644index b5754e2037..0000000000--- a/app/test/e2e/specs/probe.txt+++ /dev/null@@ -1 +0,0 @@-ok\ No newline at end of filediff --git a/app/test/playwright/specs/composio-triggers-flow.spec.ts b/app/test/playwright/specs/composio-triggers-flow.spec.tsindex 6f9549a375..480cd2c59b 100644--- a/app/test/playwright/specs/composio-triggers-flow.spec.ts+++ b/app/test/playwright/specs/composio-triggers-flow.spec.ts@@ -111,59 +111,9 @@ test.describe('Composio triggers flow', () => {await bootSkillsPage(page, 'pw-composio-triggers-' + testSlug);});- test('list_available_triggers returns the seeded Gmail catalog', async () => {- const payload = await callCoreRpc<unknown>('openhuman.composio_list_available_triggers', {- toolkit: TOOLKIT_SLUG,- connection_id: CONNECTION_ID,- });- const triggers = unwrapTriggers(payload);- const slugs = triggers.map(trigger => trigger.slug);- expect(slugs).toContain('GMAIL_NEW_GMAIL_MESSAGE');- expect(slugs).toContain('SLACK_NEW_MESSAGE');- });- test('list_triggers starts empty for the seeded user', async () => {- const payload = await callCoreRpc<unknown>('openhuman.composio_list_triggers', {});- expect(unwrapTriggers(payload)).toHaveLength(0);- });- test('enable_trigger creates a trigger that list_triggers observes', async () => {- const created = unwrapEnableTrigger(- await callCoreRpc<unknown>('openhuman.composio_enable_trigger', {- connection_id: CONNECTION_ID,- slug: 'GMAIL_NEW_GMAIL_MESSAGE',- })- );- expect(created.slug).toBe('GMAIL_NEW_GMAIL_MESSAGE');- expect(created.connectionId ?? created.connection_id).toBe(CONNECTION_ID);- expect((created.triggerId ?? created.trigger_id)?.length).toBeGreaterThan(0);-- const listed = await callCoreRpc<unknown>('openhuman.composio_list_triggers', {- toolkit: TOOLKIT_SLUG,- });- const triggers = unwrapTriggers(listed);- expect(triggers).toHaveLength(1);- expect(triggers[0]?.slug).toBe('GMAIL_NEW_GMAIL_MESSAGE');- });- test('disable_trigger removes the active trigger', async () => {- const created = unwrapEnableTrigger(- await callCoreRpc<unknown>('openhuman.composio_enable_trigger', {- connection_id: CONNECTION_ID,- slug: 'GMAIL_NEW_GMAIL_MESSAGE',- })- );- const triggerId = created.triggerId ?? created.trigger_id;- expect(triggerId).toBeTruthy();-- const disabled = unwrapDisableTrigger(- await callCoreRpc<unknown>('openhuman.composio_disable_trigger', { trigger_id: triggerId })- );- expect(disabled.deleted).toBe(true);-- const listed = await callCoreRpc<unknown>('openhuman.composio_list_triggers', {});- expect(unwrapTriggers(listed)).toHaveLength(0);- });test('renders the Triggers section in the Gmail modal', async ({ page }) => {await setMockBehavior({diff --git a/app/test/playwright/specs/notifications.spec.ts b/app/test/playwright/specs/notifications.spec.tsindex a13a781242..ef9de115db 100644--- a/app/test/playwright/specs/notifications.spec.ts+++ b/app/test/playwright/specs/notifications.spec.ts@@ -21,66 +21,9 @@ async function waitForNotificationsSections(page: Page): Promise<void> {}test.describe('Notifications', () => {- test('notification_ingest creates a new notification via core RPC', async () => {- const payload = await callCoreRpc<{ id?: string; skipped?: boolean }>(- 'openhuman.notification_ingest',- {- provider: 'e2e',- title: 'E2E Test Notification',- body: 'Created by the notifications Playwright spec',- raw_payload: {},- }- );- expect(payload.skipped).not.toBe(true);- expect(typeof payload.id).toBe('string');- });-- test('notification_list returns the ingested notification', async () => {- const title = `PW Notification List ${Date.now()}`;- await callCoreRpc<{ id?: string; skipped?: boolean }>('openhuman.notification_ingest', {- provider: 'e2e',- title,- body: 'List coverage notification',- raw_payload: {},- });-- const result = await callCoreRpc<{ items?: Array<{ title?: string }> }>(- 'openhuman.notification_list',- { limit: 20 }- );-- expect(result.items?.some(item => item.title === title)).toBe(true);- });-- test('notification_mark_read transitions notification status', async () => {- const before = await callCoreRpc<Record<string, unknown>>('openhuman.notification_stats', {});- const initialUnread = getUnreadCount(before);- const created = await callCoreRpc<{ id: string }>('openhuman.notification_ingest', {- provider: 'e2e',- title: `PW Notification Mark Read ${Date.now()}`,- body: 'Mark read coverage notification',- raw_payload: {},- });- await callCoreRpc('openhuman.notification_mark_read', { id: created.id });-- await expect- .poll(async () => {- const after = await callCoreRpc<Record<string, unknown>>(- 'openhuman.notification_stats',- {}- );- return getUnreadCount(after);- })- .toBeLessThanOrEqual(initialUnread);- });-- test('notification_stats returns aggregate statistics', async () => {- const stats = await callCoreRpc<Record<string, unknown>>('openhuman.notification_stats', {});- expect(Object.values(stats).some(value => typeof value === 'number')).toBe(true);- });test('Notifications page renders integration notifications', async ({ page }) => {const title = `PW Notification UI ${Date.now()}`;