Project Registration - Test Cases
Revision 1.0 (2026-01-14) - Complete manual test documentation
Overview
This section contains comprehensive manual test cases for the Project Registration Workflow feature. The tests cover all workflow paths including the standard path and the optional skip path.
Feature Documentation: Project Registration
Workflow Documentation: Project Registration Workflow
Test Summary
| Test Document | Description | Test Cases |
|---|---|---|
| Standard Workflow Path | Full workflow: Work Owner → Purchasing → Contractor → Approval | TC-PR-001 to TC-PR-003, TC-PR-005 to TC-PR-031 |
| Optional Path - Skip Purchasing | Skip Purchasing when project has PO No. | TC-PR-032 to TC-PR-040 |
Total Test Cases: 39 (TC-PR-004 removed - Project Registration does not require project selection)
Prerequisites
Before running these tests, ensure:
- Backend server running on
http://localhost:5000 - Frontend running on
http://localhost:4200 - Test data available:
- At least one project exists with PR.No assigned
- At least one project with PO.No filled (for skip path tests)
- At least one contractor configured with coordinator/supervisor
Test Accounts
| Role | Password | Access Level | |
|---|---|---|---|
| Admin | tn@thaiscada.com | Test1234* | View all tasks |
| Purchasing | safety-purchasing@outlook.com | Test1234* | FillInPurchasingInfo state |
| Work Owner | safety-owner@outlook.com | Test1234* | Create, review, approve |
| Contractor | safety-contractor1-0@outlook.com | Test1234* | Acknowledge procedures |
Navigation Paths
Create Task
เครื่องมือ (Tools) → สร้างงานใหม่ (Create Task) → การลงทะเบียนโครงการ (Project Registration)
View Tasks
งาน (Tasks) → รายการงาน (Task List)
Review Task
Click on task row → Task review page opens
Workflow States
| State Key | Thai Name | English Name | Expected Role |
|---|---|---|---|
fill-in-project-info | กรอกข้อมูลโครงการ | Fill in project information | Work Owner |
fill-in-purchasing-info | กรอกข้อมูลจัดซื้อ | Fill in purchasing information | Purchasing |
review-purchasing-info | รีวิวข้อมูลจัดซื้อ | Review purchasing information | Work Owner |
fill-in-pre-work-procedures-form | รับทราบระเบียบปฏิบัติงาน | Acknowledge work procedures | Contractor |
review-pre-work-procedures-form | รีวิวเอกสารระเบียบปฏิบัติงาน | Review work procedures docs | Work Owner |
approved | อนุมัติ | Approved | (terminal) |
canceled | ยกเลิก | Canceled | (terminal) |
Command Labels
| Command Key | Thai Label | Description |
|---|---|---|
approve | อนุมัติ | Approve project registration |
cancel | ยกเลิกงาน | Cancel workflow |
request-purchasing-info | ส่งไปจัดซื้อ | Send to Purchasing |
submit-purchasing-info | ส่งกลับ | Submit back to Work Owner |
request-pre-work-procedures-form | ส่งไปผู้รับเหมา | Send to Contractor |
submit-pre-work-procedures-form | รับทราบระเบียบปฏิบัติงาน | Submit acknowledgement |
Optional Command Labels
| Element | Thai Label | Description |
|---|---|---|
| Skip badge | ข้ามได้ | Shown on optional commands |
| Skipped indicator | ข้าม | Shown on skipped steps |
| Return indicator | ↩ | Shown on return target |
Labels Verified Against
review-task-toolbar.component.ts(command buttons)review-task-stepper.component.ts(step indicators)project-registration-state-metadata.config.ts(state names)workflow-visualization.config.ts(optional path config)