Skip to main content

Prototype Workflow Tests

Manual test cases for prototype workflows in Safety App.


Overview

These test cases cover the 5 prototype workflows currently in development:

WorkflowBackendStatus
Project RegistrationTemporal.ioReady for testing
Work PermitSimpleWorkflowServiceReady for testing
Training EnrollmentSimpleWorkflowServiceReady for testing
JSA PreparationSimpleWorkflowServiceReady for testing
Tool List PreparationSimpleWorkflowServicePending

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.

BadgeMeaning
(none)State visited once
(2)State visited twice (1 revision)
(3)State visited 3 times (2 revisions)

Test Accounts

RoleUsernamePasswordDescription
Work Ownerworkownertest1234Creates projects, reviews submissions
Purchasingpurchasingtest1234Fills PO information
Contractorcontractor1test1234Acknowledges procedures
Safety Officersafetytest1234Reviews work permits

Quick Start

  1. Go to http://localhost:4200
  2. Use quick login dropdown (dev mode) or login manually
  3. Navigate to "My Tasks" (งานของฉัน)
  4. Click "+" button to create new task
  5. Select workflow type from dialog

Test Environment

Ensure these services are running before testing:

ServicePortCommand
Backend API5000dotnet watch run --project SafetyApp.WebApi
Frontend4200ng serve
Temporal7233Docker container
PostgreSQL5432Docker container
Keycloak8080Docker container