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,44 @@
|
||||
from pathlib import Path
|
||||
from tests.frontend_contract import read_feature
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_app_wires_tabbed_workbench_inspector() -> None:
|
||||
app = read_feature("shell")
|
||||
|
||||
assert "from './components/inspector/WorkbenchInspector'" in app
|
||||
assert "<WorkbenchInspector" in app
|
||||
assert "selectedProject={selectedProject}" in app
|
||||
assert "selectedArea={selectedArea}" in app
|
||||
assert "qualityChecks={qualityChecks}" in app
|
||||
assert "latestExport={latestExport}" in app
|
||||
assert "detectionRuns={detectionRuns}" in app
|
||||
assert "segmentationRuns={segmentationRuns}" in app
|
||||
assert "datasetDetailProps={{" in app
|
||||
|
||||
|
||||
def test_workbench_inspector_exposes_context_dataset_quality_and_ai_tabs() -> None:
|
||||
inspector = (
|
||||
ROOT / "frontend" / "src" / "components" / "inspector" / "WorkbenchInspector.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
|
||||
assert "type InspectorTab = 'context' | 'dataset' | 'quality' | 'ai'" in inspector
|
||||
assert 'data-testid="workbench-inspector-panel"' in inspector
|
||||
assert "data-testid={`inspector-tab-${tab.key}`}" in inspector
|
||||
assert "<DatasetDetailPanel {...datasetDetailProps} />" in inspector
|
||||
assert "Laatste kwaliteitscontrole" in inspector
|
||||
assert "Laatste download" in inspector
|
||||
assert "Gebouwdetectie" in inspector
|
||||
assert "Segmentatie" in inspector
|
||||
assert "fetch(" not in inspector
|
||||
|
||||
|
||||
def test_dataset_detail_props_remain_exported_for_inspector_reuse() -> None:
|
||||
dataset_panel = read_feature("datasets")
|
||||
|
||||
assert "export interface DatasetDetailPanelProps" in dataset_panel
|
||||
assert 'className="dataset-detail-panel"' in dataset_panel
|
||||
assert "onRunRasterInspect" in dataset_panel
|
||||
assert "onRunVectorIntersect" in dataset_panel
|
||||
Reference in New Issue
Block a user