Extract QA and map workbench components
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 04:14:35 +02:00
parent 016926e256
commit acf95905ca
11 changed files with 312 additions and 125 deletions
+8 -5
View File
@@ -19,13 +19,16 @@ def test_geomap_exposes_v1_layer_controls_and_feature_inspection_contract() -> N
assert "setPaintProperty('dataset-fill', 'fill-opacity', opacity)" in geomap
def test_app_wires_map_workbench_controls_and_property_inspector() -> None:
def test_app_wires_map_workbench_component() -> None:
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
component = (ROOT / "frontend" / "src" / "components" / "map" / "MapWorkspace.tsx").read_text(encoding="utf-8")
assert "mapLayerVisible" in app
assert "mapLayerOpacity" in app
assert "selectedMapFeature" in app
assert "Layer visible" in app
assert "Layer opacity" in app
assert "Feature inspector" in app
assert "onFeatureSelect={setSelectedMapFeature}" in app
assert "<MapWorkspace" in app
assert "onSelectMapFeature={setSelectedMapFeature}" in app
assert "Layer visible" in component
assert "Layer opacity" in component
assert "Feature inspector" in component
assert "onFeatureSelect={onSelectMapFeature}" in component