We use cookies to keep you signed in and improve your experience. By continuing you accept our use of cookies.

CTM Governance Certification

Live Workflow Testing Guide

IMPORTANT: This is NOT Automated Testing

Each test below must be executed through the actual production UI by a real user. This page guides you through the workflow and helps you capture evidence.Do NOT use synthetic database tests - you must prove the real workflows work.

Progress: 0/10 Tests Complete

Test 1: CTM Self Registration
Workflow: Create CTM through signup page

Steps to Execute:

  1. Navigate to /vst/ctm/signup
  2. Fill in registration form with test data
  3. Submit registration
  4. Verify status = pending

Evidence Required:

  • Screenshot of registration form
  • VSTCTMProfile database record
  • VSTCTMAuditLog record (action_type: ctm_registered)
Test 2: Admin Approval Workflow
Workflow: Approve CTM through Admin UI

Steps to Execute:

  1. Login as Admin user
  2. Navigate to VST Admin Panel
  3. Find pending CTM
  4. Click Approve button
  5. Verify approval in database

Evidence Required:

  • Screenshot of Admin approval screen
  • Before: status=pending
  • After: status=active, approved_by=admin@email.com, approved_role=admin
  • VSTCTMAuditLog (action_type: ctm_approved)
Test 3: Staff Approval Workflow
Workflow: Approve CTM through Staff UI

Steps to Execute:

  1. Create new CTM registration
  2. Login as Staff user
  3. Navigate to Staff approval screen
  4. Approve the CTM
  5. Verify approved_role=staff

Evidence Required:

  • Screenshot of Staff approval screen
  • approved_role=staff
  • VSTCTMAuditLog record
Test 4: Owner Approval Workflow
Workflow: Approve CTM through Owner UI

Steps to Execute:

  1. Create new CTM registration
  2. Login as Owner
  3. Navigate to Manage CTM page
  4. Approve the CTM
  5. Verify approved_role=owner

Evidence Required:

  • Screenshot of Owner approval screen
  • approved_role=owner
  • VSTCTMAuditLog record
Test 5: Multiple Vehicle Management
Workflow: Assign 5+ vehicles to CTM

Steps to Execute:

  1. Login as Owner
  2. Navigate to Manage CTM
  3. Select an active CTM
  4. Assign 5 different vehicles
  5. Verify in CTM dashboard

Evidence Required:

  • Screenshot of vehicle assignment screen
  • CTM profile with assigned_vehicle_ids array
  • CTM dashboard showing all 5 vehicles
Test 6: Driver Assignment Workflow
Workflow: Assign/Transfer/Remove driver through UI

Steps to Execute:

  1. Login as Owner or CTM
  2. Navigate to Driver Management
  3. Assign a driver to vehicle
  4. Transfer driver to another vehicle
  5. Remove driver

Evidence Required:

  • Before assignment screenshot
  • After assignment screenshot
  • VSTCTMAuditLog (action_type: driver_assigned, driver_transferred, driver_removed)
Test 7: Entire Fleet Access Toggle
Workflow: Toggle manage_entire_fleet setting

Steps to Execute:

  1. Login as Owner
  2. Navigate to Manage CTM
  3. Enable 'Manage Entire Fleet'
  4. Verify CTM sees all vehicles
  5. Disable and assign specific vehicles
  6. Verify CTM sees only assigned vehicles

Evidence Required:

  • Screenshot with manage_entire_fleet=true
  • Screenshot with manage_entire_fleet=false
  • VSTCTMAuditLog (action_type: fleet_access_changed)
Test 8: Driver Credit Protection
Workflow: Driver performs actions - verify NOT charged

Steps to Execute:

  1. Login as Driver
  2. Submit Daily Reading
  3. Submit Route/Trip Log
  4. Submit Fuel Entry
  5. Check FleetCreditAuditLog

Evidence Required:

  • Driver balance BEFORE actions
  • Driver balance AFTER actions (must be unchanged)
  • FleetCreditAuditLog showing charged_account=owner or ctm (NOT driver)
Test 9: CTM Billing - Real Report Generation
Workflow: Generate premium report through CTM Dashboard

Steps to Execute:

  1. Login as CTM with credits (e.g., 100)
  2. Navigate to CTM Dashboard → Reports
  3. Generate Premium Fleet Report
  4. Verify credits deducted

Evidence Required:

  • CTM balance BEFORE: 100 credits
  • CTM balance AFTER: 80 credits (or appropriate deduction)
  • FleetCreditAuditLog (charged_account=ctm, fallback_used=false)
Test 10: Owner Fallback Billing
Workflow: Generate report with CTM credits=0

Steps to Execute:

  1. Set CTM credit_balance=0
  2. Login as CTM
  3. Generate Premium Report
  4. Verify owner was charged instead

Evidence Required:

  • CTM balance: 0 credits
  • Owner balance BEFORE → AFTER (deducted)
  • FleetCreditAuditLog (fallback_used=true, charged_account=owner)