.vbw-planning/milestones/ui-fixes-and-smart-scraping/phases/05-simplify-source-status/05-PLAN.md
Update all test files to use the new 4-status health vocabulary and verify the simplified decision tree.
Files: test/lib/source_monitor/health/source_health_monitor_test.rb
This is the most critical test file. Update all assertions:
"healthy" assertions with "working""warning" assertions with "failing" or "declining" depending on context"critical" assertions with "failing""auto_paused" health status assertions (auto-pause tests should verify auto_paused_until is set, not health_status)"unknown" assertionsFiles: test/lib/source_monitor/health/source_health_reset_test.rb, test/controllers/source_monitor/source_health_resets_controller_test.rb
"healthy" status assertions to "working" in reset testsFiles: test/models/source_monitor/source_test.rb, test/controllers/source_monitor/sources_controller_test.rb, test/helpers/source_monitor/application_helper_test.rb
"healthy" to "working"Files: test/lib/source_monitor/dashboard/stats_query_test.rb, test/lib/source_monitor/fetching/consecutive_failures_test.rb, test/lib/source_monitor/fetching/blocked_error_test.rb, test/lib/source_monitor/fetching/feed_fetcher/source_updater_error_category_test.rb, test/jobs/source_monitor/source_health_check_job_test.rb, test/controllers/source_monitor/source_retries_controller_test.rb, test/controllers/source_monitor/import_sessions_controller_test.rb, test/system/sources_test.rb, test/lib/source_monitor/configuration/scraper_registry_test.rb
Search each file for "healthy", "warning", "critical", "auto_paused", "unknown" and update:
"healthy" -> "working" in health_status context"warning" -> "declining" or "failing" depending on context"critical" -> "failing""auto_paused" -> ensure tests verify auto_paused_until rather than health_status"unknown" -> "working" or removeFiles: (none -- shell commands)
Run PARALLEL_WORKERS=1 bin/rails test and fix any remaining test failures caused by the status value changes. Also run bin/rubocop and bin/brakeman --no-pager to verify no new issues.