test: native specs never run in CI

Author: dannoteCreated Sep 18, 2026Updated Sep 25, 2026
Labelsbug

Problem

tests/e2e/native/** never runs in CI. The native-test-contracts job typechecks the specs and compiles the native-test feature, but no workflow invokes bun run test:native. The specs that exercise the real Tauri shell — including the MCP spawn spec added in #723 — therefore protect nothing, which is how #720 shipped.

Two obstacles to enabling it, both reproduced locally:

  • Spec files share one app process, so state leaks between them. The dialog remembers the section it was left on, and adding a sixth spec file makes the snapping spec fail with a window-focus timeout; it passes with five.
  • The credentials spec needs a keychain-capable environment, and the MCP spec's healthy branch needs a version-matched global @open-pencil/mcp — a 0.12.0 install against a 0.15.0 app only exercises the version guard.

Proposed solution

Run the suite on a macOS runner, provisioning a matching global @open-pencil/mcp first. Make the specs order-independent before enabling it: have each one establish the state it needs, and either serialize file execution or assert only per-spec state.

Affected area

Desktop app