Initial public release
GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
from pathlib import Path
|
||||
from tests.frontend_contract import read_feature
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_map_empty_state_surfaces_ready_vector_dataset_actions() -> None:
|
||||
map_workspace = read_feature("map_workspace")
|
||||
|
||||
assert "availableMapDatasets" in map_workspace
|
||||
assert "onOpenDatasetInMap" in map_workspace
|
||||
assert "map-empty-action-grid" in map_workspace
|
||||
assert "Open een beschikbare vectorlaag" in map_workspace
|
||||
assert "Open op kaart" in map_workspace
|
||||
assert "Nog geen gebruiksklare vectorlagen beschikbaar" in map_workspace
|
||||
|
||||
|
||||
def test_app_passes_available_vector_datasets_to_map_workspace() -> None:
|
||||
app = read_feature("shell")
|
||||
|
||||
assert "availableMapDatasets" in app
|
||||
assert "datasets.filter((dataset) => isVectorDatasetType(dataset.dataset_type) && dataset.status === 'ready')" in app
|
||||
assert "availableMapDatasets={availableMapDatasets}" in app
|
||||
assert "onOpenDatasetInMap={openDatasetInMap}" in app
|
||||
|
||||
|
||||
def test_map_empty_action_grid_has_responsive_styles() -> None:
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
assert ".map-empty-action-grid" in css
|
||||
assert "repeat(auto-fit, minmax(11rem, 1fr))" in css
|
||||
Reference in New Issue
Block a user