diff options
| author | tv <tv@krebsco.de> | 2026-11-05 20:26:42 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-05 20:51:21 +0100 |
| commit | 7d7c83616cc434f11a30b3e7f4577a55206cc76d (patch) | |
| tree | 24f3a7b1b2a82cb9d43809b681d41832b497de71 /docs | |
| parent | c9065ee56c6e857f6ceddb78c4663bf9d82f0ac8 (diff) | |
dashboard: browser checks
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/development.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/development.md b/docs/development.md index 519d64c..90715f9 100644 --- a/docs/development.md +++ b/docs/development.md @@ -38,6 +38,17 @@ links down, as now and along the writer's tree (`swarm/topology/tests.rs`, them alone: `cargo test --release --features mycelium,libp2p,tor,dashboard bench_propagation -- --ignored --nocapture`. +The dashboard's page has browser checks (`src/api/dashboard/check.js`): it loads +without errors, its peers table and map draw what the state says, and a map of 300 +members doesn't hold the page up. They need Node.js with Playwright's library and its +Chromium, so they run only when asked; `src/api/dashboard/check.nix` gives all three +from nixpkgs (Playwright's library and browsers of one version, nothing from npm): + +``` +nix-shell src/api/dashboard/check.nix --run \ + 'cargo test --features dashboard dashboard_in_a_browser -- --ignored' +``` + The simulations send the wire encoding alone, as libp2p and Tor do; a simulated net can put messages into a transport's envelope instead (`SimNet::with_codec`), and every message kind is round-tripped through each codec (`wire::samples`). |
