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
40 lines
1.6 KiB
Python
40 lines
1.6 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_detection_lab_distinguishes_configured_model_from_ui_runnable_action() -> None:
|
|
lab = read_feature("detection")
|
|
|
|
assert "detectionModelUiRunnable" in lab
|
|
assert "selectedDetectionModelId !== 'manual-fixture-detector'" in lab
|
|
assert "detectionRunBlockedReason" in lab
|
|
assert "Het fixturemodel is alleen bedoeld voor expliciete tests" in lab
|
|
assert "Klaar om gebouwen te zoeken" in lab
|
|
assert "disabled={runningDetection || runningDetectionCalibration || detectionJobActive || !detectionRunReady}" in lab
|
|
assert "detectionJob?.status === 'queued' || detectionJob?.status === 'running'" in lab
|
|
|
|
|
|
def test_segmentation_lab_distinguishes_configured_model_from_ui_runnable_action() -> None:
|
|
lab = read_feature("segmentation")
|
|
|
|
assert "segmentationModelUiRunnable" in lab
|
|
assert "selectedSegmentationModelId !== 'fixture-segmenter'" in lab
|
|
assert "segmentationRunBlockedReason" in lab
|
|
assert "Het fixturemodel is alleen bedoeld voor expliciete tests" in lab
|
|
assert "Analyse" in lab
|
|
assert "disabled={runningSegmentation || segmentationJobActive || !segmentationRunReady}" in lab
|
|
assert "segmentationJob?.status === 'queued' || segmentationJob?.status === 'running'" in lab
|
|
|
|
|
|
def test_ai_lab_guardrail_styles_remain_compact() -> None:
|
|
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
|
|
|
assert ".lab-action-guardrail" in css
|
|
assert ".lab-action-guardrail-ready" in css
|
|
assert "overflow-wrap: anywhere;" in css
|