Show scenario and level progress, add tabs to the NOC dashboard

Fixes #34
This commit is contained in:
Frederic Jung 2026-10-25 12:34:28 +01:00
parent 31372c0205
commit bfd895cc20
No known key found for this signature in database
4 changed files with 102 additions and 11 deletions

View file

@ -164,7 +164,7 @@ test('rare badges hook into incidents and deals', () => {
test('#7 NOC legend, sortable network table and transit destinations', () => {
const { ev, errors } = load();
base(ev);
ev("ACT.buyTransit({city:'fra',net:'cog',tier:1});compute();ACT.dash()");
ev("ACT.buyTransit({city:'fra',net:'cog',tier:1});compute();ACT.dash();ACT.dashTab({k:'traffic'})");
let t = ev("document.getElementById('dashCard').textContent");
assert.match(t, /Who your transit carries/);
assert.match(t, /IX peering/, 'legend explains the colours');