Files
geointel/backend/tests/test_sprint93_export_handoff_completion.py
T
Jens faeb58ef6d
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
Initial public release
2026-08-31 21:56:53 +02:00

43 lines
1.7 KiB
Python

from pathlib import Path
from tests.frontend_contract import assert_mentions, read_feature
ROOT = Path(__file__).resolve().parents[2]
def test_export_center_groups_latest_handoff_artifacts_by_type() -> None:
export_center = read_feature("exports")
assert "latestHandoffArtifacts" in export_center
assert "handoff" in export_center.casefold()
assert "Leesbaar rapport" in export_center
assert "Werkruimtedata" in export_center
assert "Kaartlaag (GeoJSON)" in export_center
assert_mentions(export_center, "Herkende gebouwen")
assert "Segmentaties (GeoJSON)" in export_center
assert "latest-artifact-grid" in export_center
assert "latest-artifact-card" in export_center
assert "Nog niet gemaakt" in export_center
def test_export_center_latest_artifact_cards_keep_existing_actions() -> None:
export_center = read_feature("exports")
assert "getLatestExportByType" in export_center
assert "const item = artifact.item" in export_center
assert "canPreviewJson(item)" in export_center
assert "onPreviewContent(item.id)" in export_center
assert "onDownload(item.id)" in export_center
assert "compactPath(item.storage_path)" in export_center
assert "formatExportCreated(item.created_at)" in export_center
def test_export_center_latest_artifact_styles_are_responsive() -> None:
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
assert ".latest-artifact-grid" in css
assert ".latest-artifact-card" in css
assert ".latest-artifact-card-empty" in css
assert ".latest-artifact-actions" in css
assert "grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));" in css