Files
geointel/backend/tests/test_sprint69_dataset_action_polish.py
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

38 lines
1.4 KiB
Python

from pathlib import Path
from tests.frontend_contract import read_feature
ROOT = Path(__file__).resolve().parents[2]
def test_dataset_panel_explains_recommended_actions() -> None:
dataset_panel = read_feature("datasets")
assert "datasetActionHint" in dataset_panel
assert "dataset-action-hint" in dataset_panel
assert "Officiële laag voor kaartanalyse en kwaliteitscontrole." in dataset_panel
assert "Bewaard resultaat dat opnieuw op de kaart" in dataset_panel
assert "Ingeladen gegevensbron voor verdere analyse." in dataset_panel
def test_dataset_buttons_have_scan_friendly_action_copy() -> None:
dataset_panel = read_feature("datasets")
assert "dataset-action-grid" in dataset_panel
assert "Bekijken" in dataset_panel
assert "Kaart" in dataset_panel
assert "Downloaden" in dataset_panel
assert "Metadata" in dataset_panel
assert "Enkel vectorlagen" in dataset_panel
assert "disabled={dataset.dataset_type === 'raster'}" in dataset_panel
def test_dataset_action_styles_keep_buttons_dense_and_responsive() -> None:
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
assert ".dataset-action-hint" in css
assert ".dataset-action-grid" in css
assert "repeat(auto-fit, minmax(8.75rem, 1fr))" in css
assert ".dataset-action-button" in css
assert ".dataset-action-button small" in css