test: follow centralized raster capabilities
This commit is contained in:
@@ -580,12 +580,15 @@ def test_dhmv_endpoints_use_canonical_envelopes(monkeypatch) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def test_frontend_and_runtime_expose_dhmv_workflow() -> None:
|
def test_frontend_and_runtime_expose_dhmv_workflow() -> None:
|
||||||
app_source = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
|
capabilities_source = (
|
||||||
|
ROOT / "frontend" / "src" / "lib" / "datasetCapabilities.ts"
|
||||||
|
).read_text(encoding="utf-8")
|
||||||
map_source = (ROOT / "frontend" / "src" / "components" / "map" / "MapWorkspace.tsx").read_text(encoding="utf-8")
|
map_source = (ROOT / "frontend" / "src" / "components" / "map" / "MapWorkspace.tsx").read_text(encoding="utf-8")
|
||||||
hook_source = (ROOT / "frontend" / "src" / "hooks" / "useMapSelectionExtract.ts").read_text(encoding="utf-8")
|
hook_source = (ROOT / "frontend" / "src" / "hooks" / "useMapSelectionExtract.ts").read_text(encoding="utf-8")
|
||||||
service_source = (ROOT / "frontend" / "src" / "services" / "api" / "datasets.ts").read_text(encoding="utf-8")
|
service_source = (ROOT / "frontend" / "src" / "services" / "api" / "datasets.ts").read_text(encoding="utf-8")
|
||||||
|
|
||||||
assert "digitaal_vlaanderen_dhmv" in app_source
|
assert "digitaal_vlaanderen_dhmv" in capabilities_source
|
||||||
|
assert "isMapRasterDataset" in capabilities_source
|
||||||
assert "Hoogte & reliëf" in map_source
|
assert "Hoogte & reliëf" in map_source
|
||||||
assert "terrainImageUrl" in map_source
|
assert "terrainImageUrl" in map_source
|
||||||
assert "analysisMode === 'current' && activeTheme.id === 'buildings' && mapSelectionBbox" in map_source
|
assert "analysisMode === 'current' && activeTheme.id === 'buildings' && mapSelectionBbox" in map_source
|
||||||
|
|||||||
Reference in New Issue
Block a user