Add workbench screenshot capture smoke
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-18 01:57:02 +02:00
parent a375bc79d1
commit 694913a280
8 changed files with 247 additions and 2 deletions
+23
View File
@@ -58,6 +58,29 @@ def test_demo_cleanup_dry_run_script_is_dry_run_only() -> None:
assert "project_report_html" in content
def test_readiness_gate_checks_workbench_screenshot_capture_syntax() -> None:
script = Path(__file__).resolve().parents[2] / "scripts" / "run_readiness_check.sh"
content = script.read_text(encoding="utf-8")
assert "bash -n scripts/capture_workbench_screenshots.sh" in content
def test_workbench_screenshot_capture_is_artifact_based_and_non_mutating() -> None:
script = Path(__file__).resolve().parents[2] / "scripts" / "capture_workbench_screenshots.sh"
content = script.read_text(encoding="utf-8")
assert "artifacts/screenshots" in content
assert "/api/v1/demo/workflow" in content
assert "['overview', 'Overview']" in content
assert "['system', 'System']" in content
assert "workspace-nav-${workspaceKey}" in content
assert "manifest.json" in content
assert "page.screenshot" in content
assert "fullPage: false" in content
assert "Playwright is required" in content
assert "--apply" not in content
def test_readiness_gate_compiles_yolo_preflight_script() -> None:
script = Path(__file__).resolve().parents[2] / "scripts" / "run_readiness_check.sh"
content = script.read_text(encoding="utf-8")