Skip to content

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

refactor(testing): update e2e testing documentation and add core ping checks

Steven Enamakel685b966320fd
diff --git a/app/test/e2e/specs/smoke.spec.ts b/app/test/e2e/specs/smoke.spec.ts
index 4bc5efea9d..f27f79ecd1 100644
--- a/app/test/e2e/specs/smoke.spec.ts
+++ b/app/test/e2e/specs/smoke.spec.ts
@@ -11,6 +11,7 @@
* Every other spec assumes this works — so when CI is red, look here first.
*/
import { waitForApp } from '../helpers/app-helpers';
+import { callOpenhumanRpc } from '../helpers/core-rpc';
import { hasAppChrome } from '../helpers/element-helpers';
import { resetApp } from '../helpers/reset-app';
import { startMockServer, stopMockServer } from '../mock-server';
@@ -46,6 +47,11 @@ describe('Smoke', function () {
expect(elements.length).toBeGreaterThan(0);
});
+ it('starts the embedded core normally and answers core.ping', async () => {
+ const ping = await callOpenhumanRpc('core.ping', {});
+ expect(ping.ok).toBe(true);
+ });
+
// NOTE: a permanently-`it.skip`ped "reaches a logged-in route after auth +
// onboarding" test was removed here (plan.md §2.1) — it was skipped for a
// documented but untracked/ownerless auth-deep-link→router flake and thus
diff --git a/app/test/playwright/specs/smoke.spec.ts b/app/test/playwright/specs/smoke.spec.ts
index 228bbfa8a4..dc522230e1 100644
--- a/app/test/playwright/specs/smoke.spec.ts
+++ b/app/test/playwright/specs/smoke.spec.ts
@@ -1,6 +1,6 @@
import { expect, test } from '@playwright/test';
-import { bootAuthenticatedPage } from '../helpers/core-rpc';
+import { bootAuthenticatedPage, callCoreRpc } from '../helpers/core-rpc';
test.describe('Smoke', () => {
test('loads the browser-hosted app against the standalone core', async ({ page }) => {
@@ -11,5 +11,19 @@ test.describe('Smoke', () => {
.poll(async () => page.evaluate(() => window.location.hash))
.toMatch(/^#\/(home|chat)/);
await expect(page.locator('[data-testid="bottom-tab-bar"], nav')).toHaveCount(1);
+
+ const bootstrap = await page.evaluate(() => ({
+ rpcUrl: localStorage.getItem('openhuman_core_rpc_url'),
+ rpcToken: localStorage.getItem('openhuman_core_rpc_token'),
+ }));
+ expect(bootstrap.rpcUrl).toMatch(/^http:\/\/127\.0\.0\.1:\d+\/rpc$/);
+ expect(bootstrap.rpcToken?.length ?? 0).toBeGreaterThanOrEqual(16);
+ expect((await callCoreRpc('core.ping', {})).ok).toBe(true);
+
+ const aboutApps = await callCoreRpc<unknown>('openhuman.about_app_list', {});
+ const response = (aboutApps ?? {}) as Record<string, unknown>;
+ const payload = 'result' in response ? response.result : response;
+ expect(Array.isArray(payload)).toBe(true);
+ expect((payload as unknown[]).length).toBeGreaterThan(0);
});
});
diff --git a/docs/gitbooks/en/developing/agent-observability.md b/docs/gitbooks/en/developing/agent-observability.md
index 78792d46c2..d896519e36 100644
--- a/docs/gitbooks/en/developing/agent-observability.md
+++ b/docs/gitbooks/en/developing/agent-observability.md
@@ -43,7 +43,6 @@ The script prints the resolved artifact directory at the end.
| ---------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| Helper | `app/test/playwright/specs/agent-review.spec.ts` | Attaches screenshots, page source and mock request logs |
| Playwright owner | `app/test/playwright/specs/agent-review.spec.ts` | Shell readiness and privacy-panel labels/toggle |
-| Native owner | `app/test/e2e/specs/agent-review.spec.ts` | No longer scheduled; remove after artifact migration passes |
| Stable selectors | `chat-message-input`, `settings-privacy-panel`, `privacy-analytics-toggle` | Agent-reliable readiness anchors |
## Environment overrides
diff --git a/docs/gitbooks/en/developing/e2e-testing.md b/docs/gitbooks/en/developing/e2e-testing.md
index 438d29dcde..4208c1da33 100644
--- a/docs/gitbooks/en/developing/e2e-testing.md
+++ b/docs/gitbooks/en/developing/e2e-testing.md
@@ -1,13 +1,13 @@
---
description: >-
- How to run the end-to-end suites: the WDIO and tauri-driver harness, a spec
- locally or in Docker, the environment variables, and which lanes run in CI.
+ How to run end-to-end suites: Playwright against the standalone core, WDIO
+ through the native Wry host, local scripts, environment variables and CI lanes.
icon: vials
---
# E2E testing
-End-to-end coverage runs through a Rust mock-backend suite, Playwright in a real browser, and WebDriverIO (WDIO) through the desktop Wry host. Each assertion has one owner: Playwright owns browser-rendered behavior; WDIO owns behavior that requires the native process, window, operating system or Tauri IPC. Only the supported Linux desktop harness runs in CI. macOS and Windows desktop jobs remain disabled until native drivers are available.
+End-to-end coverage uses the Rust mock backend, Playwright in a real browser, and WebDriverIO (WDIO) through the desktop Wry host. Each assertion has one owner: Playwright owns browser-rendered behavior; WDIO owns behavior that requires the native process, window, operating system or Tauri IPC. Only the supported Linux desktop harness runs in CI. macOS and Windows desktop jobs remain disabled until native drivers are available.
## Overview
@@ -29,7 +29,7 @@ Linux CI drives the debug binary under Xvfb through `tauri-driver`. macOS and Wi
# Build the E2E app
pnpm --filter openhuman-app test:e2e:build
-# Run every spec in one shared tauri-driver session
+# Run one native spec through the tauri-driver session
pnpm --filter openhuman-app test:e2e:session
# Run all native flows in the four CI suite groups
@@ -184,7 +184,7 @@ on every push to it, and carries three E2E lanes:
Playwright builds its web bundle and standalone core once, then uploads the same artifact to all four lanes. Each of the 64 ordinary Playwright shards starts its own core and workspace. The nine isolated cases (Connections aliases, Connections deep links, and seven Skills search/install cases) also each start their own core and workspace. CI Full requires every Playwright lane and the final gate checks the matrix result. Manual Playwright uses the same artifact and scheduler.
-The desktop lane calls the reusable workflow with `run_linux: true`, `run_macos: false` and `run_windows: false`, so only the Linux harness runs. Linux uses four fresh WDIO sessions: `foundation` (`auth,navigation,system`), `chat` (`chat,skills,journeys`), `connections` (`providers,provider-web,connectors`), and `settings` (`settings,notifications`). The reusable workflow applies the same group definitions to its macOS and Windows full-suite jobs, but those jobs are currently disabled.
+The desktop lane calls the reusable workflow with `run_linux: true`, `run_macos: false` and `run_windows: false`, so only the Linux harness runs. Linux uses four fresh WDIO sessions: `foundation` (`auth,navigation,system`), `chat` (`chat,skills,journeys`), `connections` (`providers,provider-web,connectors`), and `settings` (`settings,notifications,payments,webhooks`). The reusable workflow applies the same group definitions to its macOS and Windows full-suite jobs, but those jobs are currently disabled.
macOS and Windows desktop E2E therefore have no scheduled coverage on any branch. `.github/workflows/e2e.yml` is a manual dispatch whose `run_macos` and `run_windows` inputs also default to `false`. The older Chromium-based driver depended on CEF/CDP and is unavailable under Wry; do not describe those jobs as active coverage.