Add workbench screenshot capture smoke
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user