Add test utilities and state machine diagrams for FSM models

- Introduced reusable test utilities in `backend/tests/utils` for FSM transitions, HTMX interactions, and common scenarios.
- Added factory functions for creating test submissions, parks, rides, and photo submissions.
- Implemented assertion helpers for verifying state changes, toast notifications, and transition logs.
- Created comprehensive state machine diagrams for all FSM-enabled models in `docs/STATE_DIAGRAMS.md`, detailing states, transitions, and guard conditions.
This commit is contained in:
pacnpal
2025-12-22 08:55:39 -05:00
parent b508434574
commit 45d97b6e68
71 changed files with 8608 additions and 633 deletions

View File

@@ -149,7 +149,8 @@ ThrillWiki's technical architecture represents a paradigm shift in how theme par
3. **Intelligent Content Moderation**
- Queue-based processing with priority algorithms
- Role-based approval workflows
- Role-based approval workflows with FSM (Finite State Machine) transitions
- HTMX-powered real-time status updates without page reloads
- Automated spam and abuse detection
- Bulk operations for efficient management