Testing
We use a layered approach:
- fast checks (lint, unit tests)
- smoke tour (manual-ish)
- optional e2e (Playwright)
Scripts (expected)
In package.json:
npm run dev start server
npm test run unit tests (can be minimal early)
npm run lint lint
npm run e2e run browser tests (optional early)
Smoke tour (10 steps)
This should be doable by an agent in a browser and by a human in 2–3 minutes.
- Load app, confirm no console errors.
- Select a web (or load demo web).
- Click a node in graph, verify bio updates.
- Hover a neighbor in graph, verify preview state (no URL change).
- Click neighbor, verify URL updates and selection commits.
- Scrub timeline (or set time range), verify graph filters/highlights.
- Click a map pin (if available), verify selection updates.
- Use search to find a node, preview then commit.
- Create a new node connected to current node, verify it appears.
- Export web, import it back, verify nodes/links preserved.
E2E tests (optional early)
Start with one Playwright smoke test that performs steps 1–6.
Definition of done (testing)
- [ ] Smoke tour steps are kept current as features change.
- [ ] Every PR runs at least lint + smoke tour.
✒️
edit (requires access)