Skip to content

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

test(e2e): enhance settings data management tests

Steven Enamakel07d3e6192ba8
diff --git a/app/test/e2e/specs/settings-data-management.spec.ts b/app/test/e2e/specs/settings-data-management.spec.ts
index 978cf38966..6dd5454adc 100644
--- a/app/test/e2e/specs/settings-data-management.spec.ts
+++ b/app/test/e2e/specs/settings-data-management.spec.ts
@@ -99,14 +99,23 @@ describe('Settings - Data Management', function () {
await waitForText('This will sign you out', 5_000);
await clickSelector('[data-slot="alert-dialog-action"]');
+ await browser.waitUntil(async () => !fs.existsSync(sentinelPath), {
+ timeout: 60_000,
+ interval: 250,
+ timeoutMsg: 'reset_local_data did not delete the current user directory sentinel',
+ });
await browser.waitUntil(async () => await textExists('Welcome to OpenHuman'), {
timeout: 30_000,
interval: 250,
timeoutMsg: 'clear-data reset did not reload the signed-out Welcome screen',
});
await waitForTestId('welcome-cta-tinyhumans');
- expect(fs.existsSync(sentinelPath)).toBe(false);
+ await browser.waitUntil(async () => (await callOpenhumanRpc('core.ping', {})).ok, {
+ timeout: 30_000,
+ interval: 250,
+ timeoutMsg: 'the core did not become healthy after the clear-data restart',
+ });
const auth = await callOpenhumanRpc('openhuman.auth_get_state', {});
expect(auth.ok).toBe(true);
expect(auth.result?.result?.isAuthenticated).toBe(false);
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index deb2c324b1..b81c5320a4 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -440,7 +440,7 @@ The thread JSONL store moved to `tinyagents_session::threads` (`vendor/tinyagent
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ------ | ---------------------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| 10.1.1 | Telegram Connection | WD+RI | `app/test/e2e/specs/channels-smoke.spec.ts`, `tests/json_rpc_auth_security_e2e.rs::telegram_bot_token_connect_reject_disconnect_and_reconnect_over_json_rpc_e2e` | ✅ | The desktop smoke checks channel status and connect/disconnect UI wiring. The local JSON-RPC test covers bot-token connect, status, invalid-token rejection without losing prior state, disconnect, and reconnect. Telegram update polling/recovery remains unverified at the pinned TinyChannels version. |
+| 10.1.1 | Telegram Connection | PW+RI | `app/test/playwright/specs/channels-smoke.spec.ts`, `tests/json_rpc_auth_security_e2e.rs::telegram_bot_token_connect_reject_disconnect_and_reconnect_over_json_rpc_e2e` | ✅ | The browser smoke checks Telegram and Discord panels plus Telegram status and connect/disconnect UI wiring. The local JSON-RPC test covers bot-token connect, status, invalid-token rejection without losing prior state, disconnect, and reconnect. Telegram update polling/recovery remains unverified at the pinned TinyChannels version. |
| 10.1.2 | WhatsApp Connection | WD | `app/test/e2e/specs/whatsapp-flow.spec.ts` | 🚫 | **Corrected 2026-09-24 — this row was ✅ on evidence that does not support it.** WhatsApp has no entry in `all_channel_definitions()`, is not a Composio toolkit, and its provider sits behind the non-default `whatsapp-web` feature, which is absent from `scripts/ci/product-features.txt` — so there is no WhatsApp connect flow in the shipped build to test. The cited `whatsapp-flow.spec.ts` correctly asserts that the retired `/accounts` route redirects; it never connects anything. Manual-only until the feature ships |
| 10.1.3 | Gmail Connection | WD | `gmail-flow.spec.ts` | ✅ | |
| 10.1.4 | Slack Connection | WD | `app/test/e2e/specs/connector-composio-contract.spec.ts` (Slack row) | ✅ | **Evidence corrected 2026-09-24:** Slack is a Composio toolkit, not a native channel — it has no entry in `all_channel_definitions()`, so `channels_connect` cannot reach it. Real coverage is the 10-case connector contract (`connector-contract.ts`), which runs Slack in the gated `connectors` suite. The previously cited `slack-flow.spec.ts` is a 26-line surface smoke whose `run()` call is commented out at `e2e-run-all-flows.sh:343`, so no lane executes it Was ❌ |
@@ -478,7 +478,7 @@ The thread JSONL store moved to `tinyagents_session::threads` (`vendor/tinyagent
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ------ | ---------------------- | ----- | --------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------- |
| 10.5.1 | Channel Isolation | RU | `crates/openhuman-core/src/channels/tests/identity.rs` | ✅ | |
-| 10.5.2 | Unified Inbox Handling | WD+RI | `channels-smoke.spec.ts`, `tests/in_process/worker_c_modules_e2e.rs` | 🟡 | UI assertion shallow; RI covers config-only channel status after connect/disconnect |
+| 10.5.2 | Unified Inbox Handling | PW+RI | `app/test/playwright/specs/channels-smoke.spec.ts`, `tests/in_process/worker_c_modules_e2e.rs` | ✅ | Browser coverage verifies channel panel presence and live Telegram badge transitions; Rust integration coverage verifies channel status. |
| 10.5.3 | Context Preservation | RU | `crates/openhuman-core/src/channels/tests/context.rs` | ✅ | |
### 10.6 Permission Enforcement