// File: tests/e2e/rfa-workflow.e2e-spec.ts // E2E test ครอบคลุม RFA Approval Refactor full workflow (T077) // TODO: ต้องมี test database + seeded data สำหรับ E2E run จริง /** * E2E Workflow Coverage: * 1. RFA submit → Review Tasks created (parallel) * 2. All reviewers complete → Consensus evaluated * 3. Consensus APPROVED → Distribution queued * 4. Distribution processed → Transmittal created * 5. Veto (Code 3) → PM override → force APPROVED * 6. Reminder sent when task overdue * 7. Delegation: delegate completes task on behalf */ describe('RFA Approval Workflow (E2E)', () => { // TODO: Bootstrap NestJS test app + seed test data describe('Phase 1-3: Submit → Parallel Review → Consensus', () => { it.todo('should create parallel review tasks on RFA submit'); it.todo('should evaluate APPROVED consensus when all Code 1A'); it.todo('should evaluate REJECTED consensus when any Code 3'); it.todo('should allow PM override of Code 3 veto'); }); describe('Phase 4-5: Delegation → Reminder', () => { it.todo('should delegate review task to another user'); it.todo('should block circular delegation'); it.todo('should send reminder when task is overdue'); it.todo('should escalate to L2 after 3 days overdue'); }); describe('Phase 6-7: Distribution', () => { it.todo('should queue distribution after APPROVED consensus'); it.todo('should create Transmittal records from distribution matrix'); it.todo('should skip distribution for REJECTED'); }); });