Scale regional data catalogs
This commit is contained in:
@@ -293,3 +293,32 @@ def test_expansion_scripts_are_packaged_and_readiness_checked() -> None:
|
||||
assert sources["mdk_bcp_bathymetry"]["integration_status"] == "probe_only"
|
||||
assert sources["mdk_bcp_bathymetry"]["acquisition_supported"] is False
|
||||
assert "EL_wcs" in sources["mdk_bcp_bathymetry"]["service_url"]
|
||||
|
||||
|
||||
def test_frontend_exhaustively_pages_regional_area_inventory() -> None:
|
||||
area_api = (ROOT / "frontend" / "src" / "services" / "api" / "areas.ts").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
|
||||
assert "const AREA_PAGE_SIZE = 200" in area_api
|
||||
assert "while (offset < (total ?? 0))" in area_api
|
||||
assert "items.length !== total" in area_api
|
||||
assert "list: listProjectAreas" in area_api
|
||||
|
||||
|
||||
def test_frontend_bounds_large_area_and_dataset_catalogs() -> None:
|
||||
area_panel = (
|
||||
ROOT / "frontend" / "src" / "components" / "project" / "AreaPanel.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
dataset_panel = (
|
||||
ROOT / "frontend" / "src" / "components" / "datasets" / "DatasetPanel.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
|
||||
assert "const AREA_CATALOG_PAGE_SIZE = 12" in area_panel
|
||||
assert "{catalogOpen ? (" in area_panel
|
||||
assert "visibleAreas.map" in area_panel
|
||||
assert "Zoek gemeente of regio" in area_panel
|
||||
assert "const DATASET_CATALOG_PAGE_SIZE = 10" in dataset_panel
|
||||
assert "visiblePrimaryDatasets.map" in dataset_panel
|
||||
assert "Zoek in beschikbare bronnen" in dataset_panel
|
||||
assert "{historyOpen ? <ul" in dataset_panel
|
||||
|
||||
Reference in New Issue
Block a user