openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Add E2E coverage for the most-used connector flows

Open Al629176 opened this issue 6 months ago • 1 comments

Summary

Add end-to-end test coverage for the most-used connectors and fix the broken connection flows that are causing users to drop off.

Problem / Context

Users are connecting integrations but then hitting broken auth, status, sync, or agent-use flows. This is causing drop-off because connectors appear available in the UI but do not reliably work end to end.

The Connections page exposes many integrations, but we need confidence on the core set most users actually depend on. The tests should simulate real user behavior from the desktop app: connect, verify connected state, fetch/sync data where applicable, and ask the agent to use the connected source.

Initial priority connector set:

  • GitHub
  • Gmail
  • Google Calendar
  • Google Drive
  • Google Sheets
  • Slack
  • Notion
  • Discord
  • YouTube
  • Airtable
  • Asana
  • Jira / Atlassian
  • Confluence
  • ClickUp
  • Todoist

This list can be adjusted using usage analytics/support volume, but the implementing PR should cover 10-15 high-usage connectors, not just one or two.

Scope (optional)

Implement desktop E2E coverage using the existing Tauri/Appium or WDIO harness. Use deterministic mocks for OAuth, Composio/backend responses, provider APIs, LLM/tool calls, and sync payloads so tests do not depend on live third-party accounts.

For each selected connector, cover:

  • Connector card is visible and selectable.
  • Auth/connect flow succeeds with mocked provider/backend responses.
  • Connected state is reflected correctly in the UI after reconnect/reload.
  • Minimal data fetch/sync path works or shows a clear unsupported/preview state.
  • Agent can route a basic task to the connector or clearly explains why the connector is not agent-ready.
  • Failure states are user-friendly and do not log the user out unless the actual OpenHuman session expired.

Acceptance criteria

  • [ ] Top connector list finalized — 10-15 high-usage connectors are selected based on product judgment, support reports, or usage data.
  • [ ] E2E coverage added — Each selected connector has an end-to-end test for connect/auth/status in the desktop app.
  • [ ] Agent-use path covered — Each selected connector is tested for a basic agent task or a clear “not ready yet” state.
  • [ ] Mocks are deterministic — OAuth, backend, Composio/provider APIs, LLM/tool calls, and sync responses are mocked so tests are stable in CI.
  • [ ] Broken flows fixed — Failures found while writing the tests are fixed or split into linked blocker issues with owner/priority.
  • [ ] No false connected state — The UI does not show a connector as usable when backend catalog/tool support is missing.
  • [ ] No session nukes — Connector failures do not clear the user session unless the actual OpenHuman session token expired.
  • [ ] CI wired — The connector E2E suite runs in GitHub Actions or an agreed release-gate workflow with useful logs/artifacts.
  • [ ] Regression safety — Tests cover success, provider failure, missing scopes, expired provider auth, and reconnect/reload states.
  • [ ] Diff coverage ≥ 80% — the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml) when code changes are involved.

Related

  • Screenshot: Screenshot 2026-05-20 at 1.03.15 PM.png
  • Related reliability themes: connector status, Composio catalogs, provider auth scopes, SessionExpired handling, and agent tool routing.

Al629176 avatar May 20 '26 07:05 Al629176

Open connector/auth/integration issues to cover or use as active cases for this E2E effort:

  • #1296 — Composio GMAIL_FETCH_EMAILS returns 400 during profile building
  • #1819 — Add local-first connector mode for user-owned tool connections
  • #1952 — Instagram OAuth integration fails with HTTP 429
  • #2020 — OAuth and data privacy concerns
  • #2128 — OAuth connection badges get stuck in Connecting
  • #2148 — Support chat history integrations for WeChat, WeCom, and Feishu/Lark
  • #2213 — Google authorization does not complete
  • #2283 — Uncurated connected toolkits fail through max iterations
  • #2285 — Discord channel card click logs the user out
  • #2286 — SessionExpired clears the session for unrelated backend 401s
  • #2288 — Add ClickUp as a Composio memory provider

These are the currently open connector-related items that should inform the 10-15 high-usage connector E2E matrix.

Al629176 avatar May 20 '26 08:05 Al629176