Extract QA and map workbench components
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user