DOCM Test Plan

End-to-End Test Plan

  1. Confirm WordPress, WooCommerce, and plugin activation.
  2. Confirm settings REST returns cleanup_enabled false by default.
  3. Confirm Action Scheduler has no docm_scheduled_cleanup job while cleanup is disabled.
  4. Generate failed_payment and empty_draft test orders.
  5. Preview cleanup and verify only eligible statuses appear.
  6. Run dry-run cleanup and verify orders remain.
  7. Run execute cleanup against disposable generated orders.
  8. Reset settings and delete remaining generated test orders.

Admin routes

Open plugin admin after logging in as an administrator.