Document interactive reference and AI integration discovery
This commit is contained in:
1 parent
ec60965b5c
commit
f9e7d0975c
1 file changed
+1
-1
@@ -18,7 +18,7 @@ docker build -t otche-web:local .
|
||||
|
||||
`dist/`, dependencies, `.env` overrides and build metadata are generated/ignored. There are no external static assets or submodules required by the build. Keep `package-lock.json` tracked.
|
||||
|
||||
Run the permanent Chromium browser suite with `npx playwright install chromium` followed by `npm test`. Playwright starts an isolated Vite server on loopback port 4173 and exercises the routed application with deterministic HTTP fixtures; no running backend, administrator credentials, or private state is needed. Coverage includes key creation/scopes/expiry, one-time token handling, failed responses, revocation, limits, mobile layout, and the read-only documentation catalog. `e2e/fixtures/openapi.json` is a verbatim snapshot of the backend's embedded `internal/api/openapi.json`; refresh it when that public contract changes. Traces and reports use the ignored `test-results/` and `playwright-report/` directories.
|
||||
Run the permanent Chromium suite with `npx playwright install chromium` then `npm test`. Playwright starts isolated loopback Vite4173 and fixture4174 servers; no production backend or credentials are required. Coverage includes API-key lifecycle, readable docs, prompt discovery/copying, real HTTP upload bytes, playground auth/confirmation/abort/response bounds, duration validation and interruption states. `e2e/fixtures/openapi.json` snapshots the backend's embedded OpenAPI; refresh it when the contract changes. Traces and reports stay in ignored `test-results/` and `playwright-report/`.
|
||||
|
||||
For local development, start the real API with a dedicated local database, `PUBLIC_ORIGIN=http://127.0.0.1:5173` and `ALLOW_INSECURE_HTTP=true`, then:
|
||||
|
||||
|
||||
Reference in new issue
Block a user