Testing

We use a layered approach:

Scripts (expected)

In package.json:

Smoke tour (10 steps)

This should be doable by an agent in a browser and by a human in 2–3 minutes.

  1. Load app, confirm no console errors.
  2. Select a web (or load demo web).
  3. Click a node in graph, verify bio updates.
  4. Hover a neighbor in graph, verify preview state (no URL change).
  5. Click neighbor, verify URL updates and selection commits.
  6. Scrub timeline (or set time range), verify graph filters/highlights.
  7. Click a map pin (if available), verify selection updates.
  8. Use search to find a node, preview then commit.
  9. Create a new node connected to current node, verify it appears.
  10. 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)