Browser test app #
A minimal, local-first notes application for Civility's browser acceptance tests. It lives in the Civility repository so tests can run from an independent checkout.
It uses the current workspace's CloudStore, IDBStorage, and civ-settings-cloud component. Users can connect to a Civility server through the ordinary authorization popup and create, edit, or delete notes through native HTML controls. The Python tests interact with these controls; globalThis.testApp is only an observation surface, not a token-injection or mutation shortcut.
The app deliberately imports only civ-settings-cloud for UI registration, so its child-component registration remains under test. It has no external stylesheet, app framework, service worker, or Inro tooling dependency.
Build manually #
From the Civility repository:
deno run -A apps/browser-test/build.ts /tmp/civility-browser-app
python3 -m http.server 3850 --bind 127.0.0.1 --directory /tmp/civility-browser-app
Open http://127.0.0.1:3850 and connect to a local Civility server. Application content is ordinary server-readable JSON; this app does not implement application-owned encryption. browser-smoke is a disposable app ID: use a fresh server database or the account that already owns it.
Automated acceptance #
Python browser tests build and serve this app automatically, start a fresh CLI server, and exercise two-device signup, consent, sync, reload, and deletion. No manual build/server setup is needed for automated runs. Build outputs go into temporary test artifacts rather than the source tree.