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
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from tests.frontend_contract import read_feature
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_map_workspace_exposes_layer_provenance_and_feature_summary() -> None:
|
|
app = read_feature("shell")
|
|
map_workspace = read_feature("map_workspace")
|
|
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
|
|
|
assert "mapLayerSourceLabel" in app
|
|
assert "mapLayerProvenance" in app
|
|
assert "layer-provenance-rail" in map_workspace
|
|
assert "feature-summary-grid" in map_workspace
|
|
assert "feature-property-chip" in map_workspace
|
|
assert ".layer-provenance-rail" in css
|
|
assert ".feature-summary-grid" in css
|
|
assert ".feature-property-chip" in css
|
|
|
|
|
|
def test_map_workspace_has_clear_empty_result_layer_guidance() -> None:
|
|
map_workspace = read_feature("map_workspace")
|
|
|
|
assert "Geen actieve vector- of resultaatlaag" in map_workspace
|
|
assert "Open een databron, beeldanalyse, segmentatie of veranderingsresultaat om het hier te tekenen." in map_workspace
|