openpencil/tests/e2e/native
Danila Poyarkov b198e88136
test(native): cover the desktop MCP server lifecycle (#723)
* test(native): cover the desktop MCP server lifecycle

`tests/e2e/native/**` had no MCP coverage, so nothing verified that the
real Tauri shell finds and spawns a server. Browser E2E cannot: the spawn
path short-circuits to the Vite-managed server in development.

Add a native spec that asserts what the app actually resolved: a missing
install reports its own reason, a resolvable binary either becomes healthy
with a discovery file and answering port or is refused with a version
explanation, and hiding the resolved binary then reports the missing
install without relaunching.

Also generate the desktop icons in `build:native-test`, since they are
ignored and the build failed on a clean checkout, and let the snapping
spec select its own section instead of assuming the dialog state.

* test(native): resolve the home directory portably

process.env.HOME is unset on Windows, which put the discovery override
outside the home directory. The app accepts a server-reported discovery
path only inside it, so it fell back to its own path and could not read
the test server's token.
2026-09-18 11:42:55 +03:00
..
clipboard.spec.ts test(tauri): add native WebView interaction harness (#532) 2026-08-15 14:17:05 +03:00
credentials.spec.ts fix: prevent repeated Keychain prompts and isolate native tests (#664) 2026-09-09 13:41:55 +03:00
layer-drag.spec.ts test(native): open a document before editor fixtures 2026-09-15 14:43:31 +03:00
mcp.spec.ts test(native): cover the desktop MCP server lifecycle (#723) 2026-09-18 11:42:55 +03:00
settings.spec.ts test(native): cover the desktop MCP server lifecycle (#723) 2026-09-18 11:42:55 +03:00
text-editing.spec.ts docs(testing): define source-owned test architecture 2026-09-16 15:28:47 +03:00
tsconfig.json test(tauri): add native WebView interaction harness (#532) 2026-08-15 14:17:05 +03:00