refactor(ais): use MapUtils.init + HUD panels on vessel map

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-04-13 22:41:26 +01:00
parent 5ffd9e5fb3
commit 12af6e250e
2 changed files with 29 additions and 66 deletions

View File

@@ -29,3 +29,14 @@ def test_adsb_dashboard_includes_map_utils(client):
assert "map-utils.js" in html
assert "map-utils.css" in html
assert "MapUtils.init" in html
def test_ais_dashboard_includes_map_utils(client):
"""AIS dashboard loads map-utils.js."""
with client.session_transaction() as sess:
sess["logged_in"] = True
resp = client.get("/ais/dashboard")
assert resp.status_code == 200
html = resp.data.decode()
assert "map-utils.js" in html
assert "MapUtils.init" in html