fix(map): read all relevant selection sources
This commit is contained in:
@@ -25,7 +25,15 @@ def test_map_selection_can_acquire_dhmv_and_flood_hazard_products() -> None:
|
||||
selection_hook = read("frontend/src/hooks/useMapThemeSelectionInsights.ts")
|
||||
workspace = read("frontend/src/components/map/MapWorkspace.tsx")
|
||||
|
||||
assert "'thematic_raster' | 'dhmv' | 'flood_hazard' | 'grb'" in selection_hook
|
||||
for acquisition_kind in (
|
||||
"'thematic_raster'",
|
||||
"'dhmv'",
|
||||
"'flood_hazard'",
|
||||
"'grb'",
|
||||
"'official_vector'",
|
||||
"'bathymetry_profiles'",
|
||||
):
|
||||
assert acquisition_kind in selection_hook
|
||||
assert "datasetsApi.acquireDhmv" in selection_hook
|
||||
assert "datasetsApi.acquireFloodHazard" in selection_hook
|
||||
assert "datasetsApi.acquireThematicRaster" in selection_hook
|
||||
|
||||
Reference in New Issue
Block a user