feat(scope): make Belgium and North Sea operational default
This commit is contained in:
@@ -8,13 +8,15 @@ def read(path: str) -> str:
|
||||
return (ROOT / path).read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_regional_workspace_is_automatic_and_map_has_one_scope_selector() -> None:
|
||||
def test_national_workspace_is_automatic_and_map_has_one_scope_selector() -> None:
|
||||
project_hook = read("frontend/src/hooks/useProjectWorkspace.ts")
|
||||
map_workspace = read("frontend/src/components/map/MapWorkspace.tsx")
|
||||
|
||||
national_check = project_hook.index("const nationalProject")
|
||||
regional_check = project_hook.index("const regionalProject")
|
||||
municipality_check = project_hook.index("const municipalityProject")
|
||||
assert regional_check < municipality_check
|
||||
assert national_check < regional_check
|
||||
assert "return nationalProject.id" in project_hook
|
||||
assert "const municipalityProject" not in project_hook
|
||||
assert 'aria-label="Regio"' not in map_workspace
|
||||
assert 'aria-label="Ingeladen regiobereik"' in map_workspace
|
||||
assert "Snel naar een gemeente (optioneel)" in map_workspace
|
||||
@@ -56,7 +58,8 @@ def test_configured_yolo_and_active_asset_are_selected_without_hiding_limitation
|
||||
assert "asset.active" in hook
|
||||
assert "getYoloPreflight" in hook
|
||||
assert 'aria-label="Status gebouwdetectie"' in lab
|
||||
assert "resultaten blijven controleplichtig" in lab
|
||||
assert "Nog niet nationaal gevalideerd" in lab
|
||||
assert "vereisen lokale referentiedata en QA" in lab
|
||||
assert "Modelkalibratie voor beheerders" in lab
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user