Skip to content

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

refactor(e2e): remove webhooks ingress e2e test suite

Steven Enamakel5607db7243c7
diff --git a/app/test/e2e/specs/webhooks-ingress-flow.spec.ts b/app/test/e2e/specs/webhooks-ingress-flow.spec.ts
deleted file mode 100644
index ca66bb4a0f..0000000000
--- a/app/test/e2e/specs/webhooks-ingress-flow.spec.ts
+++ /dev/null
@@ -1,95 +0,0 @@
-// @ts-nocheck
-import { expect } from '@wdio/globals';
-
-import { waitForApp } from '../helpers/app-helpers';
-import { callOpenhumanRpc } from '../helpers/core-rpc';
-import { resetApp } from '../helpers/reset-app';
-import { clearRequestLog, startMockServer, stopMockServer } from '../mock-server';
-
-const USER_ID = 'e2e-webhooks-ingress';
-
-function stepLog(message: string, context?: unknown): void {
- const stamp = new Date().toISOString();
- if (context === undefined) {
- console.log(`[WebhooksIngressE2E][${stamp}] ${message}`);
- return;
- }
- console.log(`[WebhooksIngressE2E][${stamp}] ${message}`, JSON.stringify(context, null, 2));
-}
-
-describe('Webhooks ingress surface (stub-level)', () => {
- before(async function () {
- // resetApp bring-up (waitForApp + onboarding walk + home confirm) can run
- // ~25-30s and race the default 30s Mocha hook budget; raise it.
- this.timeout(90_000);
- await startMockServer();
- await waitForApp();
- await resetApp(USER_ID);
- clearRequestLog();
- });
-
- after(async () => {
- await stopMockServer();
- });
-
- it('reaches the app shell after onboarding', async () => {
- // The assistant-ui chat view intentionally has no fixed greeting copy.
- // The authenticated sidebar is the stable shell marker after onboarding.
- const atShell = await browser.execute(
- () => document.querySelector('[data-testid="root-shell-sidebar"]') !== null
- );
- expect(atShell).toBe(true);
- });
-
- // No Rust owner test exercises this RPC wire surface against its router;
- // retain these assertions until that integration coverage exists.
- it('exposes the stub webhook RPC surface with stable result and log shapes', async () => {
- const tunnelUuid = 'e2e-webhooks-ingress-tunnel';
-
- const registrations = await callOpenhumanRpc('openhuman.webhooks_list_registrations', {});
- expect(registrations.ok).toBe(true);
- expect(registrations.result?.result?.registrations).toEqual([]);
- expect(registrations.result?.logs?.[0]).toContain('webhooks.list_registrations returned 0');
-
- const logs = await callOpenhumanRpc('openhuman.webhooks_list_logs', { limit: 5 });
- expect(logs.ok).toBe(true);
- expect(logs.result?.result?.logs).toEqual([]);
- expect(logs.result?.logs?.[0]).toContain('webhooks.list_logs returned 0');
-
- const register = await callOpenhumanRpc('openhuman.webhooks_register_echo', {
- tunnel_uuid: tunnelUuid,
- tunnel_name: 'E2E Tunnel',
- backend_tunnel_id: 'backend-e2e-webhooks-ingress',
- });
- stepLog('register_echo result', { ok: register.ok, error: register.error });
-
- // register_echo requires the socket-backed webhook router to be
- // initialized. In E2E the socket may not be connected, so the router
- // is uninitialized and the call returns an error. When ok=false, skip
- // the write-path assertions and only validate the read-only surface.
- if (register.ok) {
- const regs = register.result?.result?.registrations ?? [];
- expect(Array.isArray(regs)).toBe(true);
- expect(regs.length).toBeGreaterThanOrEqual(1);
- expect(register.result?.logs?.[0]).toContain(
- `webhooks.register_echo registered tunnel ${tunnelUuid}`
- );
-
- const clear = await callOpenhumanRpc('openhuman.webhooks_clear_logs', {});
- expect(clear.ok).toBe(true);
- expect(clear.result?.result?.cleared).toBe(0);
- expect(clear.result?.logs?.[0]).toContain('webhooks.clear_logs removed 0');
-
- const unregister = await callOpenhumanRpc('openhuman.webhooks_unregister_echo', {
- tunnel_uuid: tunnelUuid,
- });
- expect(unregister.ok).toBe(true);
- expect(unregister.result?.result?.registrations).toEqual([]);
- expect(unregister.result?.logs?.[0]).toContain(
- `webhooks.unregister_echo removed tunnel ${tunnelUuid}`
- );
- } else {
- stepLog('register_echo failed (router not initialized) — skipping write-path assertions');
- }
- });
-});
diff --git a/docs/plans/2026-10-20-e2e-runner-consolidation.md b/docs/plans/2026-10-20-e2e-runner-consolidation.md
index 38fc65f6c7..fd99de5c07 100644
--- a/docs/plans/2026-10-20-e2e-runner-consolidation.md
+++ b/docs/plans/2026-10-20-e2e-runner-consolidation.md
@@ -39,7 +39,7 @@ Paths in the table are relative to `app/test/{e2e,playwright}/specs/`; each base
| 9 | `chat-harness-wallet-flow.spec.ts` | PW with M4. Recovery Phrase real UI, visible Copy action/saved confirmation plus durable consentGranted=true, source=generated and EVM/BTC/Solana/Tron accounts. Do not replace state oracle with canned text. |
| 10 | `chat-multi-tool-round.spec.ts` | PW with M5. Native file_read/grep suite is wholly skipped by its before hook (#236); retain active browser web_fetch/web_search cards/order. Retire dormant native intent honestly, without claiming filesystem-tool coverage was transferred. |
| 11 | `chat-tool-call-flow.spec.ts` | PW. Preserve browser’s stronger one final bubble, second paragraph once, successful terminal tool outcome/body, done status, no running/task-insights and no in-flight turn. |
-| 12 | `chat-tool-error-recovery.spec.ts` | PW. Interrupted-turn error, reenabled composer, cleared in-flight and successful new send/reply; preserve native’s final in-flight oracle explicitly. |
+| 12 | `chat-tool-error-recovery.spec.ts` | PW. Interrupted-turn error, reenabled composer, cleared in-flight and successful new send/reply; observe the exact thread's live in-flight key and require its removal after both the error and retry. |
| 13 | `command-palette.spec.ts` | PW with M6. Preserve five seed actions, Enter navigation/Escape, reopen-after-close listener survival, mod+/ directory headings/New Chat/Toggle Sidebar and unfocused ? opening/closing. Existing arrow-key companion remains. |
| 14 | `composio-triggers-flow.spec.ts` | PW. ACTIVE Gmail manage dialog, trigger-toggles and New Gmail Message label, using existing local Composio fixtures. |
| 15 | `connectivity-state-differentiation.spec.ts` | Retire both stale E2E copies. Source history shows the Home surface that consumed the offline selector was removed before the baseline; the selector and listener remain covered by focused unit tests. Do not claim this obsolete banner as migrated browser UI coverage or replace it with generic shell/ping checks. |