Part of #179.
Goal
Add test coverage for the new behavior: finding → lever mapping, preflight hard-blocks, Delta snapshot write/read, and the full CTA → Optimizer E2E flow.
Work
Acceptance
pytest backend/tests/ passes
- Deployed E2E tests pass against a workspace with a known space
- Preflight block scenarios are covered
- Delta persistence is exercised end-to-end
Files
backend/tests/test_fix_agent_prompt.py (add deprecation comment)
backend/tests/test_fix_agent_paths.py (add deprecation comment)
backend/tests/test_optimizer_signals.py (new)
backend/tests/test_optimizer_preflight.py (new)
tests/test_e2e_deployed.py (extend)
tests/test_optimizer_scan_snapshots.py (new, optional split)
Part of #179.
Goal
Add test coverage for the new behavior: finding → lever mapping, preflight hard-blocks, Delta snapshot write/read, and the full CTA → Optimizer E2E flow.
Work
backend/tests/test_fix_agent_prompt.pyandbackend/tests/test_fix_agent_paths.pyin place (backend stays per Task 1), but add a one-liner "Fix Agent UI deprecated — see Workbench 0.2 for full removal" comment at the top of each filebackend/routers/auto_optimize.pyor a newbackend/services/optimizer_signals.py)tests/test_e2e_deployed.pyor add a newtests/test_optimizer_scan_snapshots.py)tests/test_e2e_deployed.py.Acceptance
pytest backend/tests/passesFiles
backend/tests/test_fix_agent_prompt.py(add deprecation comment)backend/tests/test_fix_agent_paths.py(add deprecation comment)backend/tests/test_optimizer_signals.py(new)backend/tests/test_optimizer_preflight.py(new)tests/test_e2e_deployed.py(extend)tests/test_optimizer_scan_snapshots.py(new, optional split)