Prototype Workflow Tests
Manual test cases for prototype workflows in Safety App.
Overview
These test cases cover the 5 prototype workflows currently in development:
| Workflow | Backend | Status |
|---|---|---|
| Project Registration | Temporal.io | Ready for testing |
| Work Permit | SimpleWorkflowService | Ready for testing |
| Training Enrollment | SimpleWorkflowService | Ready for testing |
| JSA Preparation | SimpleWorkflowService | Ready for testing |
| Tool List Preparation | SimpleWorkflowService | Pending |
State Visit Counts Feature
The workflow stepper displays a (N) badge when a state is visited more than once. This helps users track revision cycles.
Example: When a task is sent back for revision and returns to the same state, the badge shows (2), then (3) for subsequent visits.
| Badge | Meaning |
|---|---|
| (none) | State visited once |
| (2) | State visited twice (1 revision) |
| (3) | State visited 3 times (2 revisions) |
Test Accounts
| Role | Username | Password | Description |
|---|---|---|---|
| Work Owner | workowner | test1234 | Creates projects, reviews submissions |
| Purchasing | purchasing | test1234 | Fills PO information |
| Contractor | contractor1 | test1234 | Acknowledges procedures |
| Safety Officer | safety | test1234 | Reviews work permits |
Quick Start
- Go to
http://localhost:4200 - Use quick login dropdown (dev mode) or login manually
- Navigate to "My Tasks" (งานของฉัน)
- Click "+" button to create new task
- Select workflow type from dialog
Test Environment
Ensure these services are running before testing:
| Service | Port | Command |
|---|---|---|
| Backend API | 5000 | dotnet watch run --project SafetyApp.WebApi |
| Frontend | 4200 | ng serve |
| Temporal | 7233 | Docker container |
| PostgreSQL | 5432 | Docker container |
| Keycloak | 8080 | Docker container |