Fix regional bathymetry context labels
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-17 17:47:10 +02:00
parent 4fd6c06f5c
commit c50756f67d
9 changed files with 94 additions and 10 deletions
@@ -29,7 +29,7 @@ def test_frontend_declares_mol_as_primary_operating_focus() -> None:
assert "PRIMARY_FOCUS_AREA_GEOJSON" in project_hook
assert "4.35,51.28" not in project_hook
assert "center: PRIMARY_FOCUS_CENTER" in map_source
assert "GeoAI-werkruimte · Mol en de Kempen" in app
assert "GeoAI-werkruimte · gebiedsdata en analyse" in app
def test_operator_workflows_put_mol_first_and_name_future_projects() -> None:
@@ -450,6 +450,10 @@ def test_frontend_labels_flanders_scope_without_kempen_mislabeling() -> None:
def test_frontend_uses_partitioned_bathymetry_selection_for_regional_scope() -> None:
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
focus = (
ROOT / "frontend" / "src" / "config" / "primaryFocus.ts"
).read_text(encoding="utf-8")
map_workspace = (
ROOT / "frontend" / "src" / "components" / "map" / "MapWorkspace.tsx"
).read_text(encoding="utf-8")
@@ -466,3 +470,7 @@ def test_frontend_uses_partitioned_bathymetry_selection_for_regional_scope() ->
assert "activeSelectionResult?.geojson ?? null" in map_workspace
assert "selectBathymetryProfilePartitions" in theme_hook
assert "datasets/bathymetry/profiles/partitions/select" in dataset_api
assert "regionalBathymetryContextActive" in app
assert "regionalBathymetryProfileCount" in app
assert "profielen · ${regionalBathymetryPartitions.length} gemeenten" in app
assert "FLANDERS_WORKSPACE_LABEL = 'Vlaanderen (285 gemeenten)'" in focus