{
  "suite": "VBMS API Test Suite",
  "target": "http://127.0.0.1:5001/api",
  "startedAt": "2026-10-19T05:21:42.632Z",
  "finishedAt": "2026-10-19T05:21:47.051Z",
  "summary": {
    "total": 218,
    "passed": 218,
    "failed": 0,
    "blocked": 0
  },
  "modules": {
    "AUTH": {
      "total": 27,
      "passed": 27,
      "failed": 0,
      "blocked": 0
    },
    "MASTERS": {
      "total": 53,
      "passed": 53,
      "failed": 0,
      "blocked": 0
    },
    "MEMBERS": {
      "total": 10,
      "passed": 10,
      "failed": 0,
      "blocked": 0
    },
    "Users (system)": {
      "total": 13,
      "passed": 13,
      "failed": 0,
      "blocked": 0
    },
    "RBAC": {
      "total": 18,
      "passed": 18,
      "failed": 0,
      "blocked": 0
    },
    "JOBS": {
      "total": 26,
      "passed": 26,
      "failed": 0,
      "blocked": 0
    },
    "GEOFENCE": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "blocked": 0
    },
    "ATTENDANCE": {
      "total": 22,
      "passed": 22,
      "failed": 0,
      "blocked": 0
    },
    "SMOKE": {
      "total": 21,
      "passed": 21,
      "failed": 0,
      "blocked": 0
    },
    "SECURITY": {
      "total": 14,
      "passed": 14,
      "failed": 0,
      "blocked": 0
    },
    "BOUNDARY": {
      "total": 10,
      "passed": 10,
      "failed": 0,
      "blocked": 0
    }
  },
  "fixtures": {
    "fmUserId": 115,
    "fmUsername": "qa_field_member_mvet4e51",
    "stateId": 66,
    "locId": 19,
    "svcTypeId": 28,
    "companyId": 32,
    "customerId": 33,
    "customerId2": 34,
    "branchId": 15,
    "branchLocId": 19,
    "contactId": 25,
    "memberId": 26,
    "memberUserId": 121,
    "materialId": 37,
    "jobId": 20,
    "ticketId": 30
  },
  "results": [
    {
      "id": "QA-AUTH-001",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Valid admin credentials → token issued",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEsImlhdCI6MTc5MjM4NzMwNCwiZXhwIjoxNzkyOTkyMTA0fQ.134RBmxxBEKkSXN4bFukGE6t4lvFGBzdpX8D1nLdHiM\",\"user\":{\"id\":1,\"name\":\"Administrator\",\"email\":\"admin@fieldservice.loc…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.013Z"
    },
    {
      "id": "QA-AUTH-002",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Invalid password rejected",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Invalid credentials. 1 attempt remaining before temporary lockout.\",\"remainingAttempts\":1}",
      "pass": true,
      "note": "lockout counter active: Invalid credentials. 1 attempt remaining before temporary lockout.",
      "ts": "2026-10-19T05:21:44.093Z"
    },
    {
      "id": "QA-AUTH-003",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Missing password → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Username and password are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.095Z"
    },
    {
      "id": "QA-AUTH-004",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Missing username → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Username and password are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.097Z"
    },
    {
      "id": "QA-AUTH-005",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Non-string credentials → 400 invalid input types",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Invalid input types\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.098Z"
    },
    {
      "id": "QA-AUTH-006",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Username >255 chars → 400 too long",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Username is too long\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.099Z"
    },
    {
      "id": "QA-AUTH-007",
      "module": "AUTH",
      "screen": "Profile",
      "scenario": "/auth/me with token → user payload",
      "expected": "HTTP 200 + user.role",
      "actualStatus": 200,
      "actual": "{\"user\":{\"id\":1,\"name\":\"Administrator\",\"email\":\"admin@fieldservice.local\",\"username\":null,\"role\":\"super_admin\",\"status\":\"active\",\"photo_url\":null,\"permissions\":[\"attendance.edit\",\"attendance.override\",\"attendance.view\",\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.103Z"
    },
    {
      "id": "QA-AUTH-008",
      "module": "AUTH",
      "screen": "Profile",
      "scenario": "/auth/me without token → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Missing or invalid authorization header\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.104Z"
    },
    {
      "id": "QA-AUTH-009",
      "module": "AUTH",
      "screen": "Profile",
      "scenario": "/auth/me malformed token → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Invalid or expired token\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.106Z"
    },
    {
      "id": "QA-AUTH-010",
      "module": "AUTH",
      "screen": "Profile",
      "scenario": "/auth/me expired token → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Invalid or expired token\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.110Z"
    },
    {
      "id": "QA-AUTH-011",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "check-username existing → available:false",
      "expected": "HTTP 200 available=false",
      "actualStatus": 200,
      "actual": "{\"available\":false,\"message\":\"Username already taken\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.112Z"
    },
    {
      "id": "QA-AUTH-012",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "check-username free name → available:true",
      "expected": "HTTP 200 available=true",
      "actualStatus": 200,
      "actual": "{\"available\":true,\"message\":\"Username available\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.113Z"
    },
    {
      "id": "QA-AUTH-013",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "check-username <3 chars → available:false",
      "expected": "HTTP 200 available=false",
      "actualStatus": 200,
      "actual": "{\"available\":false,\"message\":\"Username must be at least 3 characters\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.114Z"
    },
    {
      "id": "QA-AUTH-014",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "forgot-password unknown email → generic 200 (anti-enumeration)",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"If an account exists, a reset link has been sent.\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.116Z"
    },
    {
      "id": "QA-AUTH-015",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "forgot-password invalid email format → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Invalid email format\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.117Z"
    },
    {
      "id": "QA-AUTH-016",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "forgot-password existing email → same generic response as unknown (anti-enumeration)",
      "expected": "HTTP 200 generic message (no SMTP in test env)",
      "actualStatus": 200,
      "actual": "{\"message\":\"If an account exists, a reset link has been sent.\"}",
      "pass": true,
      "note": "SMTP not configured in QA env; send path unverified",
      "ts": "2026-10-19T05:21:44.126Z"
    },
    {
      "id": "QA-AUTH-017",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "reset-password invalid token → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Invalid reset token\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.139Z"
    },
    {
      "id": "QA-AUTH-018",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "reset-password validate bogus token → status invalid",
      "expected": "HTTP 200 status=invalid",
      "actualStatus": 200,
      "actual": "{\"status\":\"invalid\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.141Z"
    },
    {
      "id": "QA-AUTH-019",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "change-password new == current → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"New password must be different from current password\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.315Z"
    },
    {
      "id": "QA-AUTH-020",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "change-password wrong current → 4xx rejected",
      "expected": "HTTP 4xx",
      "actualStatus": 401,
      "actual": "{\"message\":\"Current password is incorrect\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.399Z"
    },
    {
      "id": "QA-AUTH-021",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "change-password weak new password → 400 policy",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Password must be at least 8 characters\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.405Z"
    },
    {
      "id": "QA-AUTH-022",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "change-password valid → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Password changed successfully\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.587Z"
    },
    {
      "id": "QA-AUTH-023",
      "module": "AUTH",
      "screen": "Password reset",
      "scenario": "login with changed password → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEyMiwiaWF0IjoxNzkyMzg3MzA0LCJleHAiOjE3OTI5OTIxMDR9.LoPw8XVWiCpA1aa7FPWGPK1VkrQ6MZmaKBUtB0EPaig\",\"user\":{\"id\":122,\"name\":\"QA Pwd User\",\"email\":\"qa_pwd_mvet4f65@qa.l…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:44.681Z"
    },
    {
      "id": "QA-AUTH-024",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Account lockout after 5 consecutive failures → 423",
      "expected": "HTTP 423 within 6 attempts",
      "actualStatus": "401,401,401,401,423,423",
      "actual": "{\"message\":\"login attempt sequence\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.213Z"
    },
    {
      "id": "QA-AUTH-025",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Correct password during lockout window still → 423",
      "expected": "HTTP 423",
      "actualStatus": 423,
      "actual": "{\"message\":\"Account locked. Try again in 15 minute(s).\",\"locked\":true,\"lockoutMinutes\":15,\"lockoutExpiresAt\":\"2026-10-19T05:36:45.000Z\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.216Z"
    },
    {
      "id": "QA-AUTH-026",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "Admin account unaffected by lockout tests",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEsImlhdCI6MTc5MjM4NzMwNSwiZXhwIjoxNzkyOTkyMTA1fQ.iGpuUCfDbRupqGPaw63e5TX2wbdRAeXVouT9F5hNfLk\",\"user\":{\"id\":1,\"name\":\"Administrator\",\"email\":\"admin@fieldservice.loc…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.300Z"
    },
    {
      "id": "QA-AUTH-027",
      "module": "AUTH",
      "screen": "Login / Session",
      "scenario": "logout with token → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Logged out\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.319Z"
    },
    {
      "id": "QA-MASTERS-028",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "create state → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":68,\"name\":\"QA-State-CRUD\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.329Z"
    },
    {
      "id": "QA-MASTERS-029",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "duplicate state name → allowed (no unique constraint)",
      "expected": "HTTP 201 (no 409 in contract)",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":70,\"name\":\"QA-State-Dup\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "No unique constraint on states.name — duplicates permitted",
      "ts": "2026-10-19T05:21:45.344Z"
    },
    {
      "id": "QA-MASTERS-030",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "create state missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.351Z"
    },
    {
      "id": "QA-MASTERS-031",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "list/search states → 200 + data array",
      "expected": "HTTP 200 data[]",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":68,\"name\":\"QA-State-CRUD\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"},{\"id\":61,\"name\":\"QA-State-CRUD-…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.359Z"
    },
    {
      "id": "QA-MASTERS-032",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "get state by id → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":68,\"name\":\"QA-State-CRUD\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\",\"locations\":[]}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.366Z"
    },
    {
      "id": "QA-MASTERS-033",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "update state → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":68,\"name\":\"QA-State-CRUD-Updated\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.375Z"
    },
    {
      "id": "QA-MASTERS-034",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "soft delete state → 200 deactivated",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"State deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.383Z"
    },
    {
      "id": "QA-MASTERS-035",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "DB: deleted state status=inactive",
      "expected": "status=inactive",
      "actualStatus": 200,
      "actual": "[{\"status\":\"inactive\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.384Z"
    },
    {
      "id": "QA-MASTERS-036",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "get missing state → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"State not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.389Z"
    },
    {
      "id": "QA-MASTERS-037",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "update missing state → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"State not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.394Z"
    },
    {
      "id": "QA-MASTERS-038",
      "module": "MASTERS",
      "screen": "States",
      "scenario": "delete missing state → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"State not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.399Z"
    },
    {
      "id": "QA-MASTERS-039",
      "module": "MASTERS",
      "screen": "Locations",
      "scenario": "create location with state_id \"new:Name\" → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":20,\"state_id\":71,\"name\":\"QA-Loc-CRUD\",\"latitude\":\"11.0000000\",\"longitude\":\"78.0000000\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"state…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.411Z"
    },
    {
      "id": "QA-MASTERS-040",
      "module": "MASTERS",
      "screen": "Locations",
      "scenario": "create location missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.416Z"
    },
    {
      "id": "QA-MASTERS-041",
      "module": "MASTERS",
      "screen": "Locations",
      "scenario": "update location → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":20,\"state_id\":71,\"name\":\"QA-Loc-Updated\",\"latitude\":\"11.0000000\",\"longitude\":\"78.0000000\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"st…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.426Z"
    },
    {
      "id": "QA-MASTERS-042",
      "module": "MASTERS",
      "screen": "Locations",
      "scenario": "list locations → 200 + data[]",
      "expected": "HTTP 200 data[]",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":20,\"state_id\":71,\"name\":\"QA-Loc-Updated\",\"latitude\":\"11.0000000\",\"longitude\":\"78.0000000\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"s…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.433Z"
    },
    {
      "id": "QA-MASTERS-043",
      "module": "MASTERS",
      "screen": "Locations",
      "scenario": "soft delete location → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Location deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.440Z"
    },
    {
      "id": "QA-MASTERS-044",
      "module": "MASTERS",
      "screen": "Locations",
      "scenario": "delete missing location → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Location not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.445Z"
    },
    {
      "id": "QA-MASTERS-045",
      "module": "MASTERS",
      "screen": "Service types",
      "scenario": "create service type → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":29,\"name\":\"QA-Svc-CRUD\",\"default_duration\":\"\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.454Z"
    },
    {
      "id": "QA-MASTERS-046",
      "module": "MASTERS",
      "screen": "Service types",
      "scenario": "create missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.459Z"
    },
    {
      "id": "QA-MASTERS-047",
      "module": "MASTERS",
      "screen": "Service types",
      "scenario": "duplicate service type name → allowed (no 409)",
      "expected": "HTTP 201 (no unique constraint)",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":30,\"name\":\"QA-Svc-CRUD\",\"default_duration\":\"4\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "No uniqueness check on service_types.name",
      "ts": "2026-10-19T05:21:45.467Z"
    },
    {
      "id": "QA-MASTERS-048",
      "module": "MASTERS",
      "screen": "Service types",
      "scenario": "update service type → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":29,\"name\":\"QA-Svc-Updated\",\"default_duration\":\"8\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.475Z"
    },
    {
      "id": "QA-MASTERS-049",
      "module": "MASTERS",
      "screen": "Service types",
      "scenario": "soft delete service type → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.483Z"
    },
    {
      "id": "QA-MASTERS-050",
      "module": "MASTERS",
      "screen": "Service types",
      "scenario": "delete missing service type → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.488Z"
    },
    {
      "id": "QA-MASTERS-051",
      "module": "MASTERS",
      "screen": "Material types",
      "scenario": "create material type → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":51,\"name\":\"QA-MT-mvet4g7k\",\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:45.000Z\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.498Z"
    },
    {
      "id": "QA-MASTERS-052",
      "module": "MASTERS",
      "screen": "Material types",
      "scenario": "duplicate material type name → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Material type already exists\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.503Z"
    },
    {
      "id": "QA-MASTERS-053",
      "module": "MASTERS",
      "screen": "Material types",
      "scenario": "whitespace-only name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.509Z"
    },
    {
      "id": "QA-MASTERS-054",
      "module": "MASTERS",
      "screen": "Material types",
      "scenario": "soft delete material type → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.516Z"
    },
    {
      "id": "QA-MASTERS-055",
      "module": "MASTERS",
      "screen": "Material types",
      "scenario": "list excludes inactive material types",
      "expected": "HTTP 200 + deleted type absent",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":4,\"name\":\"Bricks\",\"status\":\"active\",\"created_at\":\"2026-10-18T13:11:45.000Z\"},{\"id\":1,\"name\":\"Cement\",\"status\":\"active\",\"created_at\":\"2026-10-18T13:11:45.000Z\"},{\"id\":6,\"name\":\"Electrical\",\"status\":\"active\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.522Z"
    },
    {
      "id": "QA-MASTERS-056",
      "module": "MASTERS",
      "screen": "Companies",
      "scenario": "create missing code → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name and code are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.527Z"
    },
    {
      "id": "QA-MASTERS-057",
      "module": "MASTERS",
      "screen": "Companies",
      "scenario": "create company → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":33,\"name\":\"QA-Co-CRUD\",\"code\":\"QA-CO-mvet4g8n\",\"type\":\"external\",\"address\":null,\"phone\":null,\"email\":null,\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:45.000Z\",\"updated_at\":\"2026-10-19T05:21:45.000Z\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.537Z"
    },
    {
      "id": "QA-MASTERS-058",
      "module": "MASTERS",
      "screen": "Companies",
      "scenario": "duplicate company code → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Company code already exists\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.543Z"
    },
    {
      "id": "QA-MASTERS-059",
      "module": "MASTERS",
      "screen": "Companies",
      "scenario": "get company by id → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":33,\"name\":\"QA-Co-CRUD\",\"code\":\"QA-CO-mvet4g8n\",\"type\":\"external\",\"address\":null,\"phone\":null,\"email\":null,\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:45.000Z\",\"updated_at\":\"2026-10-19T05:21:45.000Z\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.548Z"
    },
    {
      "id": "QA-MASTERS-060",
      "module": "MASTERS",
      "screen": "Companies",
      "scenario": "update company → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":33,\"name\":\"QA-Co-Updated\",\"code\":\"QA-CO-mvet4g8n\",\"type\":\"external\",\"address\":null,\"phone\":null,\"email\":null,\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:45.000Z\",\"updated_at\":\"2026-10-19T05:21:45.000Z\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.557Z"
    },
    {
      "id": "QA-MASTERS-061",
      "module": "MASTERS",
      "screen": "Companies",
      "scenario": "soft delete company → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Company deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.564Z"
    },
    {
      "id": "QA-MASTERS-062",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "create customer missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.570Z"
    },
    {
      "id": "QA-MASTERS-063",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "create customer (name only) → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":35,\"company_id\":null,\"name\":\"QA-Cust-CRUD-mvet4g9u\",\"code\":null,\"company_name\":null,\"industry\":null,\"email\":null,\"website\":null,\"customer_currency\":\"INR\",\"gst_no\":null,\"pan_no\":null,\"holiday_calendar_id\":nu…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.578Z"
    },
    {
      "id": "QA-MASTERS-064",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "duplicate customer code → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Customer code already exists\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.598Z"
    },
    {
      "id": "QA-MASTERS-065",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "get customer → 200 + branches + contacts arrays",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":35,\"company_id\":null,\"name\":\"QA-Cust-CRUD-mvet4g9u\",\"code\":\"QA-CODE-mvet4ga2\",\"company_name\":null,\"industry\":null,\"email\":null,\"website\":null,\"customer_currency\":\"INR\",\"gst_no\":null,\"pan_no\":null,\"holiday_c…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.609Z"
    },
    {
      "id": "QA-MASTERS-066",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "create branch missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Branch name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.615Z"
    },
    {
      "id": "QA-MASTERS-067",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "create branch → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":16,\"customer_id\":35,\"name\":\"QA-Br-CRUD\",\"code\":null,\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:45.000Z\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.626Z"
    },
    {
      "id": "QA-MASTERS-068",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "branch location missing location_id → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Location is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.630Z"
    },
    {
      "id": "QA-MASTERS-069",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "create branch location → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":20,\"branch_id\":16,\"location_id\":19,\"address_line1\":null,\"address_line2\":null,\"city\":null,\"state_id\":null,\"pincode\":null,\"latitude\":null,\"longitude\":null,\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:45.0…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.640Z"
    },
    {
      "id": "QA-MASTERS-070",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "login contact missing email → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Email is required for login users\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.646Z"
    },
    {
      "id": "QA-MASTERS-071",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "login contact weak password → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Password must be at least 6 characters\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.651Z"
    },
    {
      "id": "QA-MASTERS-072",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "create login contact → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":26,\"customer_id\":35,\"branch_id\":null,\"name\":\"QA C\",\"email\":\"qa.c.mvet4gc3@qa.local\",\"mobile\":null,\"designation\":null,\"is_primary\":0,\"login_required\":\"yes\",\"login_role\":\"customer_operator\",\"username\":\"qa_c_m…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.743Z"
    },
    {
      "id": "QA-MASTERS-073",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "duplicate contact username → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Username already exists\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.748Z"
    },
    {
      "id": "QA-MASTERS-074",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "soft delete branch → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Branch deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.755Z"
    },
    {
      "id": "QA-MASTERS-075",
      "module": "MASTERS",
      "screen": "Customers + branches + contacts",
      "scenario": "soft delete customer → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Customer deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.762Z"
    },
    {
      "id": "QA-MASTERS-076",
      "module": "MASTERS",
      "screen": "Materials",
      "scenario": "single material missing material_code → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Material code is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.769Z"
    },
    {
      "id": "QA-MASTERS-077",
      "module": "MASTERS",
      "screen": "Materials",
      "scenario": "create single material → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":38,\"company_id\":32,\"branch_id\":null,\"customer_id\":null,\"material_code\":\"QA-M2-mvet4gfd\",\"order_no\":null,\"material_month\":null,\"material_type\":null,\"material_type_id\":null,\"material_name\":\"QA M2\",\"mode_of_bo…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.779Z"
    },
    {
      "id": "QA-MASTERS-078",
      "module": "MASTERS",
      "screen": "Materials",
      "scenario": "batch items not an array → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"items array is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.784Z"
    },
    {
      "id": "QA-MASTERS-079",
      "module": "MASTERS",
      "screen": "Materials",
      "scenario": "create batch materials → 201 array",
      "expected": "HTTP 201 + 2 rows",
      "actualStatus": 201,
      "actual": "{\"data\":[{\"id\":39,\"company_id\":32,\"branch_id\":null,\"customer_id\":null,\"material_code\":\"QA-B1-mvet4gfs\",\"order_no\":null,\"material_month\":null,\"material_type\":null,\"material_type_id\":null,\"material_name\":\"B1\",\"mode_of_boug…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.795Z"
    },
    {
      "id": "QA-MASTERS-080",
      "module": "MASTERS",
      "screen": "Materials",
      "scenario": "get missing material → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.801Z"
    },
    {
      "id": "QA-MEMBERS-081",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "create member missing mobile → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name and mobile are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.807Z"
    },
    {
      "id": "QA-MEMBERS-082",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "create member (no login) → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":27,\"company_id\":null,\"user_id\":null,\"employee_id\":\"EMP-202610-0027\",\"name\":\"QA Member CRUD\",\"email\":\"qa.mcrud.mvet4ggf@qa.local\",\"mobile\":\"9000000002\",\"aadhaar_no\":null,\"dob\":null,\"esi_number\":null,\"epf_num…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.815Z"
    },
    {
      "id": "QA-MEMBERS-083",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "create member with login_enabled → 201 + user linked",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":28,\"company_id\":null,\"user_id\":125,\"employee_id\":\"EMP-202610-0028\",\"name\":\"QA Member Login\",\"email\":\"qa.mlogin.mvet4ggn@qa.local\",\"mobile\":\"9000000003\",\"aadhaar_no\":null,\"dob\":null,\"esi_number\":null,\"epf_nu…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.885Z"
    },
    {
      "id": "QA-MEMBERS-084",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "duplicate member login username → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Username already taken\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.891Z"
    },
    {
      "id": "QA-MEMBERS-085",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "login_enabled without username/password → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Username and password are required to enable login\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.897Z"
    },
    {
      "id": "QA-MEMBERS-086",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "list members → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":1,\"company_id\":null,\"user_id\":30,\"employee_id\":\"EMP-202610-0001\",\"name\":\"QA Member\",\"email\":\"qa.member.mveltpzw@qa.local\",\"mobile\":\"9000000001\",\"aadhaar_no\":null,\"dob\":null,\"esi_number\":null,\"epf_number\":n…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.904Z"
    },
    {
      "id": "QA-MEMBERS-087",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "update member → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":27,\"company_id\":null,\"user_id\":null,\"employee_id\":\"EMP-202610-0027\",\"name\":\"QA Member Updated\",\"email\":\"qa.mcrud.mvet4ggf@qa.local\",\"mobile\":\"9000000002\",\"aadhaar_no\":null,\"dob\":null,\"esi_number\":null,\"epf_…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.916Z"
    },
    {
      "id": "QA-MEMBERS-088",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "soft delete member → 2xx",
      "expected": "HTTP 2xx",
      "actualStatus": 200,
      "actual": "{\"message\":\"Member deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.926Z"
    },
    {
      "id": "QA-MEMBERS-089",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "update missing member → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Member not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.931Z"
    },
    {
      "id": "QA-MEMBERS-090",
      "module": "MEMBERS",
      "screen": "MIS Members",
      "scenario": "create member without email → 400 expected",
      "expected": "HTTP 400 (validation) or 201 (nullable)",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":29,\"company_id\":null,\"user_id\":null,\"employee_id\":\"EMP-202610-0029\",\"name\":\"QA NoEmail\",\"email\":null,\"mobile\":\"9000000009\",\"aadhaar_no\":null,\"dob\":null,\"esi_number\":null,\"epf_number\":null,\"police_verificati…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.940Z"
    },
    {
      "id": "QA-Users (system)-091",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "create user missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name, email, and password are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.956Z"
    },
    {
      "id": "QA-Users (system)-092",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "create user weak password → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Password must be at least 6 characters\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:45.963Z"
    },
    {
      "id": "QA-Users (system)-093",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "create user → 201 (no password echoed)",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":126,\"name\":\"QA User CRUD\",\"username\":\"qa_user_mvet4gkr\",\"email\":\"qa_user_mvet4gkr@qa.local\",\"phone\":null,\"role\":\"coordinator\",\"status\":\"active\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.057Z"
    },
    {
      "id": "QA-Users (system)-094",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "create response does not echo password",
      "expected": "no plaintext password in body",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":126,\"name\":\"QA User CRUD\",\"username\":\"qa_user_mvet4gkr\",\"email\":\"qa_user_mvet4gkr@qa.local\",\"phone\":null,\"role\":\"coordinator\",\"status\":\"active\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.057Z"
    },
    {
      "id": "QA-Users (system)-095",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "duplicate user email → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Email or username already exists\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.140Z"
    },
    {
      "id": "QA-Users (system)-096",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "GET user by id → 200, no password/original_password fields",
      "expected": "HTTP 200 + clean body",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":126,\"name\":\"QA User CRUD\",\"username\":\"qa_user_mvet4gkr\",\"email\":\"qa_user_mvet4gkr@qa.local\",\"phone\":null,\"role\":\"coordinator\",\"status\":\"active\",\"created_at\":\"2026-10-19T05:21:46.000Z\",\"updated_at\":\"2026-10-…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.146Z"
    },
    {
      "id": "QA-Users (system)-097",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "list users → 200, no password/original_password in rows",
      "expected": "HTTP 200 + clean body",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":1,\"name\":\"Administrator\",\"username\":null,\"email\":\"admin@fieldservice.local\",\"phone\":null,\"role\":\"super_admin\",\"status\":\"active\",\"created_at\":\"2026-10-18T13:11:46.000Z\",\"updated_at\":\"2026-10-19T05:21:45.000…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.153Z"
    },
    {
      "id": "QA-Users (system)-098",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "update user role → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":126,\"name\":\"QA User CRUD\",\"username\":\"qa_user_mvet4gkr\",\"email\":\"qa_user_mvet4gkr@qa.local\",\"role\":\"house_keeping\",\"status\":\"active\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.162Z"
    },
    {
      "id": "QA-Users (system)-099",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "DB: role updated",
      "expected": "role=house_keeping",
      "actualStatus": 200,
      "actual": "[{\"role\":\"house_keeping\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.163Z"
    },
    {
      "id": "QA-Users (system)-100",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "DB: users.password is bcrypt + original_password stores plaintext (product requirement)",
      "expected": "password LIKE $2% AND original_password plaintext",
      "actualStatus": 200,
      "actual": "{\"hashPrefix\":\"$2a$\",\"original\":\"Qa@Pass123\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.164Z"
    },
    {
      "id": "QA-Users (system)-101",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "soft delete user → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Deactivated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.171Z"
    },
    {
      "id": "QA-Users (system)-102",
      "module": "Users (system)",
      "screen": "User management",
      "scenario": "delete missing user → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"User not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.176Z"
    },
    {
      "id": "QA-Users (system)-103",
      "module": "Users (system)",
      "screen": "Roles & permissions",
      "scenario": "list all roles → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"name\":\"customer_admin\",\"description\":\"Customer administrator: own customers and jobs\",\"user_count\":0,\"permission_count\":7,\"child_permissions\":{\"job\":{\"all\":{\"view\":true},\"all-tickets\":{\"view\":true},\"my-assignm…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.184Z"
    },
    {
      "id": "QA-RBAC-104",
      "module": "RBAC",
      "screen": "Auth guard",
      "scenario": "anonymous GET /states → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Missing or invalid authorization header\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.185Z"
    },
    {
      "id": "QA-RBAC-105",
      "module": "RBAC",
      "screen": "Auth guard",
      "scenario": "anonymous GET /jobs → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Missing or invalid authorization header\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.187Z"
    },
    {
      "id": "QA-RBAC-106",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member create state → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.193Z"
    },
    {
      "id": "QA-RBAC-107",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member create user → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.197Z"
    },
    {
      "id": "QA-RBAC-108",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member list users → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.202Z"
    },
    {
      "id": "QA-RBAC-109",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member view audit → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.207Z"
    },
    {
      "id": "QA-RBAC-110",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member create customer → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.212Z"
    },
    {
      "id": "QA-RBAC-111",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member create job → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.221Z"
    },
    {
      "id": "QA-RBAC-112",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "coordinator create user → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.226Z"
    },
    {
      "id": "QA-RBAC-113",
      "module": "RBAC",
      "screen": "Positive permissions",
      "scenario": "coordinator view states → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":71,\"name\":\"QA-LocState2\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:45.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:45.000Z\",\"created_by_name\":\"Administrator\"},{\"id\":70,\"name\":\"QA-State-Dup\",\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.233Z"
    },
    {
      "id": "QA-RBAC-114",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "customer_viewer create job → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.239Z"
    },
    {
      "id": "QA-RBAC-115",
      "module": "RBAC",
      "screen": "Positive permissions",
      "scenario": "customer_viewer view jobs → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[],\"total\":0,\"page\":1,\"limit\":50}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.245Z"
    },
    {
      "id": "QA-RBAC-116",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "customer_viewer create state → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.250Z"
    },
    {
      "id": "QA-RBAC-117",
      "module": "RBAC",
      "screen": "Positive permissions",
      "scenario": "house_keeping view settings → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"company_id\":\"\",\"company_name\":\"\",\"support_email\":\"\",\"timezone\":\"Asia/Kolkata\",\"security_two_factor\":\"false\",\"security_session_timeout\":\"30\",\"security_password_min_length\":\"8\",\"security_require_special_chars\":\"true\",\"se…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.256Z"
    },
    {
      "id": "QA-RBAC-118",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "house_keeping edit settings → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.261Z"
    },
    {
      "id": "QA-RBAC-119",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member edit settings → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.266Z"
    },
    {
      "id": "QA-RBAC-120",
      "module": "RBAC",
      "screen": "Positive permissions",
      "scenario": "vbms_reviewer view pending reviews → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[],\"total\":0,\"page\":1,\"limit\":50}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.272Z"
    },
    {
      "id": "QA-RBAC-121",
      "module": "RBAC",
      "screen": "Negative permissions",
      "scenario": "field_member view vbms reviews → 403",
      "expected": "HTTP 403",
      "actualStatus": 403,
      "actual": "{\"message\":\"Insufficient permissions\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.276Z"
    },
    {
      "id": "QA-JOBS-122",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "create job missing required fields → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"job_date, customer_id, branch_id, and service_type_id are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.282Z"
    },
    {
      "id": "QA-JOBS-123",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "create job with members + coords → 201 status in_progress",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":20,\"job_no\":\"JOB-20261019-0020\",\"job_date\":\"2026-10-19T18:30:00.000Z\",\"job_end_date\":\"2026-10-20T18:30:00.000Z\",\"state_id\":67,\"location_id\":19,\"customer_id\":33,\"branch_id\":15,\"material_id\":null,\"service_typ…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.308Z"
    },
    {
      "id": "QA-JOBS-124",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "created job status is in_progress",
      "expected": "status=in_progress",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":20,\"job_no\":\"JOB-20261019-0020\",\"job_date\":\"2026-10-19T18:30:00.000Z\",\"job_end_date\":\"2026-10-20T18:30:00.000Z\",\"state_id\":67,\"location_id\":19,\"customer_id\":33,\"branch_id\":15,\"material_id\":null,\"service_typ…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.308Z"
    },
    {
      "id": "QA-JOBS-125",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "assign without member → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"member_id or member_ids is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.315Z"
    },
    {
      "id": "QA-JOBS-126",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "assign member (already assigned) → 2xx handled",
      "expected": "HTTP 2xx",
      "actualStatus": 201,
      "actual": "{\"message\":\"Member assigned successfully\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.332Z"
    },
    {
      "id": "QA-JOBS-127",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "generate-daily-tasks → 200 + count",
      "expected": "HTTP 200 count>=0",
      "actualStatus": 200,
      "actual": "{\"message\":\"Generated 0 daily tasks (0 days skipped - holidays/weekends/overrides)\",\"count\":0,\"skipped\":0}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.346Z"
    },
    {
      "id": "QA-JOBS-128",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "job has >=1 daily task after generation/manual",
      "expected": "daily_tasks.length >= 1",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":20,\"job_no\":\"JOB-20261019-0020\",\"job_date\":\"2026-10-19T18:30:00.000Z\",\"job_end_date\":\"2026-10-20T18:30:00.000Z\",\"state_id\":67,\"location_id\":19,\"customer_id\":33,\"branch_id\":15,\"material_id\":null,\"service_typ…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.393Z"
    },
    {
      "id": "QA-JOBS-129",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "manual ticket duplicate date → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"A ticket already exists for this date\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.401Z"
    },
    {
      "id": "QA-JOBS-130",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "manual ticket missing task_date → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"task_date is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.406Z"
    },
    {
      "id": "QA-JOBS-131",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "ticket check-in within geofence → 200 status in_progress",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":30,\"job_id\":20,\"task_date\":\"2026-10-19T18:30:00.000Z\",\"checkin_time\":\"2026-10-19T05:21:46.000Z\",\"checkout_time\":null,\"before_photo_url\":null,\"before_photos\":[],\"after_photo_url\":null,\"after_photos\":[],\"stat…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.417Z"
    },
    {
      "id": "QA-JOBS-132",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "ticket check-out → 200 status completed",
      "expected": "HTTP 200 completed",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":30,\"job_id\":20,\"task_date\":\"2026-10-19T18:30:00.000Z\",\"checkin_time\":\"2026-10-19T05:21:46.000Z\",\"checkout_time\":\"2026-10-19T05:21:46.000Z\",\"before_photo_url\":null,\"before_photos\":[],\"after_photo_url\":\"/api/…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.431Z"
    },
    {
      "id": "QA-JOBS-133",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "DB: ticket status completed after checkout",
      "expected": "status=completed",
      "actualStatus": 200,
      "actual": "[{\"status\":\"completed\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.432Z"
    },
    {
      "id": "QA-JOBS-134",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "submit job for review → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Job submitted for review\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.463Z"
    },
    {
      "id": "QA-JOBS-135",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "DB: job status submitted",
      "expected": "status=submitted",
      "actualStatus": 200,
      "actual": "[{\"status\":\"submitted\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.464Z"
    },
    {
      "id": "QA-JOBS-136",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "vbms pending list → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":30,\"job_id\":20,\"task_date\":\"2026-10-19T18:30:00.000Z\",\"checkin_time\":\"2026-10-19T05:21:46.000Z\",\"checkout_time\":\"2026-10-19T05:21:46.000Z\",\"before_photo_url\":null,\"before_photos\":[],\"after_photo_url\":\"/api…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.472Z"
    },
    {
      "id": "QA-JOBS-137",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "approve missing ticket → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Ticket not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.477Z"
    },
    {
      "id": "QA-JOBS-138",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "VBMS approve completed ticket → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Ticket approved by VBMS\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.489Z"
    },
    {
      "id": "QA-JOBS-139",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "DB: job_reviews row created for VBMS approve",
      "expected": "row exists decision=approved",
      "actualStatus": 200,
      "actual": "{\"count\":1,\"decision\":\"approved\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.490Z"
    },
    {
      "id": "QA-JOBS-140",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "rework without remarks → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Remarks are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.496Z"
    },
    {
      "id": "QA-JOBS-141",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "rework completed ticket → 200 + replacement generated",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Ticket sent for rework — a replacement ticket has been generated\",\"replacementTicketId\":32}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.510Z"
    },
    {
      "id": "QA-JOBS-142",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "DB: ticket_redo_history row written",
      "expected": "count >= 1",
      "actualStatus": 200,
      "actual": "[{\"c\":1}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.512Z"
    },
    {
      "id": "QA-JOBS-143",
      "module": "JOBS",
      "screen": "Review workflow",
      "scenario": "DB: original ticket frozen as redo",
      "expected": "status=redo",
      "actualStatus": 200,
      "actual": "[{\"status\":\"redo\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.512Z"
    },
    {
      "id": "QA-JOBS-144",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "get missing job → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Job not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.517Z"
    },
    {
      "id": "QA-JOBS-145",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "list jobs → 200 + data/stats",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":19,\"job_no\":\"JOB-20261019-0019\",\"job_date\":\"2026-10-22T18:30:00.000Z\",\"job_end_date\":null,\"state_id\":60,\"location_id\":17,\"customer_id\":30,\"branch_id\":13,\"material_id\":null,\"service_type_id\":25,\"description…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.538Z"
    },
    {
      "id": "QA-JOBS-146",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "sidebar-stats → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"jobsToday\":0,\"activeTickets\":0}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.545Z"
    },
    {
      "id": "QA-JOBS-147",
      "module": "JOBS",
      "screen": "Job lifecycle",
      "scenario": "daily-tasks list → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":29,\"job_id\":19,\"task_date\":\"2026-10-22T18:30:00.000Z\",\"checkin_time\":\"2026-10-19T05:14:24.000Z\",\"checkout_time\":null,\"before_photo_url\":null,\"before_photos\":[],\"after_photo_url\":null,\"after_photos\":[],\"sta…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.572Z"
    },
    {
      "id": "QA-GEOFENCE-148",
      "module": "GEOFENCE",
      "screen": "Ticket check-in",
      "scenario": "check-in outside geofence (≈200km) → 403 + distance/radius",
      "expected": "HTTP 403 + distance + radius",
      "actualStatus": 403,
      "actual": "{\"message\":\"Outside geofence: you are 290172.02m from the site (radius 100m).\",\"distance\":290172.02,\"radius\":100}",
      "pass": true,
      "note": "distance=290172.02m radius=100m",
      "ts": "2026-10-19T05:21:46.599Z"
    },
    {
      "id": "QA-GEOFENCE-149",
      "module": "GEOFENCE",
      "screen": "Ticket check-in",
      "scenario": "DB: out-of-fence check-in NOT recorded (reject-before-write)",
      "expected": "checkin_time IS NULL",
      "actualStatus": 200,
      "actual": "[{\"checkin_time\":null}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.600Z"
    },
    {
      "id": "QA-GEOFENCE-150",
      "module": "GEOFENCE",
      "screen": "Ticket check-in",
      "scenario": "check-in within geofence → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":33,\"job_id\":21,\"task_date\":\"2026-10-21T18:30:00.000Z\",\"checkin_time\":\"2026-10-19T05:21:46.000Z\",\"checkout_time\":null,\"before_photo_url\":null,\"before_photos\":[],\"after_photo_url\":null,\"after_photos\":[],\"stat…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.608Z"
    },
    {
      "id": "QA-GEOFENCE-151",
      "module": "GEOFENCE",
      "screen": "Ticket check-in",
      "scenario": "customer gps_enabled=0 → far check-in allowed (no fence)",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":34,\"job_id\":22,\"task_date\":\"2026-10-22T18:30:00.000Z\",\"checkin_time\":\"2026-10-19T05:21:46.000Z\",\"checkout_time\":null,\"before_photo_url\":null,\"before_photos\":[],\"after_photo_url\":null,\"after_photos\":[],\"stat…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.638Z"
    },
    {
      "id": "QA-ATTENDANCE-152",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "checkin missing member_id → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"member_id and date are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.645Z"
    },
    {
      "id": "QA-ATTENDANCE-153",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "checkin valid → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":29,\"member_id\":26,\"customer_id\":null,\"date\":\"2026-10-18T18:30:00.000Z\",\"check_in\":\"2026-10-18T23:51:46.000Z\",\"check_out\":null,\"total_hours\":null,\"status\":\"present\",\"holiday_work\":0,\"holiday_work_approved\":0…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.653Z"
    },
    {
      "id": "QA-ATTENDANCE-154",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "duplicate checkin same date → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Already checked in for this date\",\"attendance\":{\"id\":29,\"member_id\":26,\"customer_id\":null,\"date\":\"2026-10-18T18:30:00.000Z\",\"check_in\":\"2026-10-18T23:51:46.000Z\",\"check_out\":null,\"total_hours\":null,\"status\":\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.657Z"
    },
    {
      "id": "QA-ATTENDANCE-155",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "checkout without checkin → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"No check-in found for this date\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.664Z"
    },
    {
      "id": "QA-ATTENDANCE-156",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "checkout valid → 200 + total_hours",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":29,\"member_id\":26,\"customer_id\":null,\"date\":\"2026-10-18T18:30:00.000Z\",\"check_in\":\"2026-10-18T23:51:46.000Z\",\"check_out\":\"2026-10-18T23:51:46.000Z\",\"total_hours\":\"0.00\",\"status\":\"present_limited\",\"holiday_w…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.671Z"
    },
    {
      "id": "QA-ATTENDANCE-157",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "double checkout → 409",
      "expected": "HTTP 409",
      "actualStatus": 409,
      "actual": "{\"message\":\"Already checked out\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.676Z"
    },
    {
      "id": "QA-ATTENDANCE-158",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "DB: attendance row has total_hours + status",
      "expected": "total_hours present",
      "actualStatus": 200,
      "actual": "[{\"status\":\"present_limited\",\"total_hours\":\"0.00\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.677Z"
    },
    {
      "id": "QA-ATTENDANCE-159",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "list attendance → 200 data[]",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":21,\"member_id\":18,\"customer_id\":null,\"date\":\"2026-10-18T18:30:00.000Z\",\"check_in\":\"2026-10-18T23:41:54.000Z\",\"check_out\":\"2026-10-18T23:41:54.000Z\",\"total_hours\":\"0.00\",\"status\":\"present_limited\",\"holiday_…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.683Z"
    },
    {
      "id": "QA-ATTENDANCE-160",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "daily-summary → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"attendance\":{\"total\":8,\"present\":\"0\",\"present_limited\":\"8\",\"on_leave\":\"0\",\"absent\":\"0\",\"holiday\":\"0\",\"holiday_worked\":\"0\"},\"jobs\":{\"total_jobs\":0,\"assigned\":null,\"in_progress\":null,\"submitted\":null,\"completed\":null},\"d…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.690Z"
    },
    {
      "id": "QA-ATTENDANCE-161",
      "module": "ATTENDANCE",
      "screen": "Daily attendance",
      "scenario": "update missing attendance → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Attendance record not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.695Z"
    },
    {
      "id": "QA-ATTENDANCE-162",
      "module": "ATTENDANCE",
      "screen": "Capacity",
      "scenario": "POST capacity missing member_id → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"member_id and capacity_date are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.700Z"
    },
    {
      "id": "QA-ATTENDANCE-163",
      "module": "ATTENDANCE",
      "screen": "Capacity",
      "scenario": "GET capacity valid → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[]}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.705Z"
    },
    {
      "id": "QA-ATTENDANCE-164",
      "module": "ATTENDANCE",
      "screen": "Cron schedule",
      "scenario": "PUT /attendance/cron-schedule → expected 200 \"Schedule updated\"",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"running\":true,\"schedule\":{\"hour\":\"18\",\"minute\":\"0\",\"cron\":\"0 18 * * *\"}},\"message\":\"Schedule updated\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.719Z"
    },
    {
      "id": "QA-ATTENDANCE-165",
      "module": "ATTENDANCE",
      "screen": "Cron schedule",
      "scenario": "GET cron-status → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"running\":true,\"schedule\":{\"hour\":\"18\",\"minute\":\"0\",\"cron\":\"0 18 * * *\"},\"config\":{\"refresh_hour\":\"18\",\"refresh_minute\":\"0\",\"auto_refresh_enabled\":\"1\"}}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.725Z"
    },
    {
      "id": "QA-ATTENDANCE-166",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "create leave missing dates → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"member_id, from_date, and to_date are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.729Z"
    },
    {
      "id": "QA-ATTENDANCE-167",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "from_date > to_date → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"from_date must be on or before to_date\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.735Z"
    },
    {
      "id": "QA-ATTENDANCE-168",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "create leave → 201",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":8,\"member_id\":26,\"from_date\":\"2026-10-31T18:30:00.000Z\",\"to_date\":\"2026-11-02T18:30:00.000Z\",\"reason\":\"QA leave\",\"leave_type\":null,\"status\":\"pending\",\"approved_by\":null,\"created_at\":\"2026-10-19T05:21:46.000…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.744Z"
    },
    {
      "id": "QA-ATTENDANCE-169",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "list leaves → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":8,\"member_id\":26,\"from_date\":\"2026-10-31T18:30:00.000Z\",\"to_date\":\"2026-11-02T18:30:00.000Z\",\"reason\":\"QA leave\",\"leave_type\":null,\"status\":\"pending\",\"approved_by\":null,\"created_at\":\"2026-10-19T05:21:46.00…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.750Z"
    },
    {
      "id": "QA-ATTENDANCE-170",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "approve with invalid status → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Status must be approved or rejected\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.754Z"
    },
    {
      "id": "QA-ATTENDANCE-171",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "approve leave → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":8,\"member_id\":26,\"from_date\":\"2026-10-31T18:30:00.000Z\",\"to_date\":\"2026-11-02T18:30:00.000Z\",\"reason\":\"QA leave\",\"leave_type\":null,\"status\":\"approved\",\"approved_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.768Z"
    },
    {
      "id": "QA-ATTENDANCE-172",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "approve missing leave → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Leave request not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.773Z"
    },
    {
      "id": "QA-ATTENDANCE-173",
      "module": "ATTENDANCE",
      "screen": "Leaves",
      "scenario": "DB: leave status approved",
      "expected": "status=approved",
      "actualStatus": 200,
      "actual": "[{\"status\":\"approved\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.774Z"
    },
    {
      "id": "QA-SMOKE-174",
      "module": "SMOKE",
      "screen": "Settings",
      "scenario": "GET settings → 200 flat key map",
      "expected": "HTTP 200 object",
      "actualStatus": 200,
      "actual": "{\"company_id\":\"\",\"company_name\":\"\",\"support_email\":\"\",\"timezone\":\"Asia/Kolkata\",\"security_two_factor\":\"false\",\"security_session_timeout\":\"30\",\"security_password_min_length\":\"8\",\"security_require_special_chars\":\"true\",\"se…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.779Z"
    },
    {
      "id": "QA-SMOKE-175",
      "module": "SMOKE",
      "screen": "Settings",
      "scenario": "PUT empty body → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"No settings provided\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.784Z"
    },
    {
      "id": "QA-SMOKE-176",
      "module": "SMOKE",
      "screen": "Settings",
      "scenario": "PUT settings (super_admin) → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"Settings saved successfully\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.791Z"
    },
    {
      "id": "QA-SMOKE-177",
      "module": "SMOKE",
      "screen": "Settings",
      "scenario": "DB: setting persisted",
      "expected": "setting_value=qa-probe-value",
      "actualStatus": 200,
      "actual": "[{\"setting_value\":\"qa-probe-value\"}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.792Z"
    },
    {
      "id": "QA-SMOKE-178",
      "module": "SMOKE",
      "screen": "Preferences",
      "scenario": "GET preferences → 200 {preferences, saved}",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"preferences\":{\"id\":1,\"user_id\":1,\"display_name\":null,\"preferred_name\":null,\"nickname\":null,\"theme\":\"default\",\"primary_color\":\"#0284c7\",\"accent_color\":\"#0ea5e9\",\"appearance_mode\":\"dark\",\"menu_layout\":\"vertical\",\"sidebar…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.799Z"
    },
    {
      "id": "QA-SMOKE-179",
      "module": "SMOKE",
      "screen": "Preferences",
      "scenario": "PUT preferences → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"preferences\":{\"id\":1,\"user_id\":1,\"display_name\":null,\"preferred_name\":null,\"nickname\":null,\"theme\":\"default\",\"primary_color\":\"#0284c7\",\"accent_color\":\"#0ea5e9\",\"appearance_mode\":\"dark\",\"menu_layout\":\"vertical\",\"sidebar…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.809Z"
    },
    {
      "id": "QA-SMOKE-180",
      "module": "SMOKE",
      "screen": "Notifications",
      "scenario": "GET notifications → 200 {data,total,unread}",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[],\"total\":0,\"unread\":0,\"page\":1,\"limit\":50}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.815Z"
    },
    {
      "id": "QA-SMOKE-181",
      "module": "SMOKE",
      "screen": "Notifications",
      "scenario": "mark all read → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"message\":\"All marked as read\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.820Z"
    },
    {
      "id": "QA-SMOKE-182",
      "module": "SMOKE",
      "screen": "Notifications",
      "scenario": "mark bogus id read → 200 graceful",
      "expected": "HTTP 2xx (no 500)",
      "actualStatus": 200,
      "actual": "{\"message\":\"Marked as read\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.826Z"
    },
    {
      "id": "QA-SMOKE-183",
      "module": "SMOKE",
      "screen": "Dashboard",
      "scenario": "GET dashboard stats → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"kpi\":{\"total_jobs\":22,\"today_jobs\":0,\"open_jobs\":0,\"assigned_jobs\":0,\"in_progress_jobs\":0,\"submitted_jobs\":0,\"vbms_review_jobs\":0,\"cub_review_jobs\":0,\"feedback_jobs\":0,\"rework_jobs\":0,\"completed_jobs\":0,\"completed_toda…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.846Z"
    },
    {
      "id": "QA-SMOKE-184",
      "module": "SMOKE",
      "screen": "Global search",
      "scenario": "search q=QA → 200 {results}",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"results\":[{\"type\":\"location\",\"icon\":\"bi-pin-map\",\"color\":\"var(--success-600)\",\"label\":\"QA-Location\",\"sub\":\"QA-LocState\",\"path\":\"/master-setup/locations?tab=locations\"},{\"type\":\"location\",\"icon\":\"bi-pin-map\",\"color\":\"va…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.855Z"
    },
    {
      "id": "QA-SMOKE-185",
      "module": "SMOKE",
      "screen": "Global search",
      "scenario": "search q<2 chars → 200 empty results",
      "expected": "HTTP 200 results=[]",
      "actualStatus": 200,
      "actual": "{\"results\":[]}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.859Z"
    },
    {
      "id": "QA-SMOKE-186",
      "module": "SMOKE",
      "screen": "Audit trail",
      "scenario": "GET audit logs → 200 data[]",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":709,\"user_id\":1,\"action\":\"create\",\"entity\":\"user\",\"entity_id\":126,\"old_data\":null,\"new_data\":\"{\\\"id\\\":126,\\\"name\\\":\\\"QA User CRUD\\\",\\\"username\\\":\\\"qa_user_mvet4gkr\\\",\\\"email\\\":\\\"qa_user_mvet4gkr@qa.local\\\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.868Z"
    },
    {
      "id": "QA-SMOKE-187",
      "module": "SMOKE",
      "screen": "Audit trail",
      "scenario": "GET missing audit id → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Audit log not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.874Z"
    },
    {
      "id": "QA-SMOKE-188",
      "module": "SMOKE",
      "screen": "Audit trail",
      "scenario": "DB: audit_logs contain state operations from this run",
      "expected": "count > 0",
      "actualStatus": 200,
      "actual": "[{\"c\":82}]",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.875Z"
    },
    {
      "id": "QA-SMOKE-189",
      "module": "SMOKE",
      "screen": "Profile",
      "scenario": "GET profile → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"id\":1,\"name\":\"Administrator\",\"username\":null,\"email\":\"admin@fieldservice.local\",\"phone\":null,\"role\":\"super_admin\",\"status\":\"active\",\"avatar_url\":null,\"created_at\":\"2026-10-18T13:11:46.000Z\",\"updated_at\":\"2026-10-19T05:…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.884Z"
    },
    {
      "id": "QA-SMOKE-190",
      "module": "SMOKE",
      "screen": "Holidays",
      "scenario": "GET holidays → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":1,\"name\":\"VOLTECH Default Calendar\",\"year\":2026,\"calendar_type\":\"voltech\",\"customer_id\":null,\"location_id\":null,\"state_id\":null,\"status\":\"active\",\"created_at\":\"2026-10-18T13:11:46.000Z\",\"updated_at\":\"2026-…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.890Z"
    },
    {
      "id": "QA-SMOKE-191",
      "module": "SMOKE",
      "screen": "Holidays",
      "scenario": "create calendar missing name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name and year are required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.896Z"
    },
    {
      "id": "QA-SMOKE-192",
      "module": "SMOKE",
      "screen": "Mail formats",
      "scenario": "GET mail formats → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":1,\"email_name\":\"Reassign\",\"subject\":\"Field Engineer Change for Job {{job_no}}\",\"body_html\":\"<div style=\\\"font-family:Arial,Helvetica,sans-serif;max-width:800px;margin:0 auto;padding:20px;background:#fff;\\\"…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.903Z"
    },
    {
      "id": "QA-SMOKE-193",
      "module": "SMOKE",
      "screen": "Feedback",
      "scenario": "public active templates → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "[{\"id\":3,\"name\":\"Cash Management Services Survey\",\"description\":\"Customer satisfaction survey for cash management services including cash collection, transportation, ATM replenishment, and vault management.\",\"service_typ…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.906Z"
    },
    {
      "id": "QA-SMOKE-194",
      "module": "SMOKE",
      "screen": "Feedback",
      "scenario": "public feedback bogus token → 404 (no data leak)",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"error\":\"Invalid or expired feedback link\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.911Z"
    },
    {
      "id": "QA-SECURITY-195",
      "module": "SECURITY",
      "screen": "Injection probes",
      "scenario": "SQLi probe in ?search= → 200 parameterized (no error, no dump)",
      "expected": "HTTP 200 data[]",
      "actualStatus": 200,
      "actual": "{\"data\":[],\"total\":0,\"page\":1,\"limit\":50}",
      "pass": true,
      "note": "Query is parameterized — payload treated as literal",
      "ts": "2026-10-19T05:21:46.918Z"
    },
    {
      "id": "QA-SECURITY-196",
      "module": "SECURITY",
      "screen": "Injection probes",
      "scenario": "SQLi probe in login username → 401 rejected",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"message\":\"Invalid credentials\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.921Z"
    },
    {
      "id": "QA-SECURITY-197",
      "module": "SECURITY",
      "screen": "XSS probes",
      "scenario": "store <script> state name → 201 (stored raw; frontend must escape)",
      "expected": "HTTP 201",
      "actualStatus": 201,
      "actual": "{\"data\":{\"id\":72,\"name\":\"<script>alert('qaxss')</script>\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:46.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\",\"created_by_name\":\"Administrator\"}}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.930Z"
    },
    {
      "id": "QA-SECURITY-198",
      "module": "SECURITY",
      "screen": "XSS probes",
      "scenario": "stored XSS string round-trips unescaped in API JSON (expected; React escapes on render)",
      "expected": "HTTP 200 contains payload",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":72,\"name\":\"<script>alert('qaxss')</script>\",\"status\":\"active\",\"updated_at\":\"2026-10-19T05:21:46.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\",\"created_by_name\":\"Administrator\",\"locations\":[]}…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.936Z"
    },
    {
      "id": "QA-SECURITY-199",
      "module": "SECURITY",
      "screen": "Static assets",
      "scenario": "GET /api/uploads/<file> without auth → 401 expected",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"note\":\"signed-upload guard\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.946Z"
    },
    {
      "id": "QA-SECURITY-200",
      "module": "SECURITY",
      "screen": "Static assets",
      "scenario": "D-003 valid signed upload URL → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"note\":\"signed url\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.955Z"
    },
    {
      "id": "QA-SECURITY-201",
      "module": "SECURITY",
      "screen": "Static assets",
      "scenario": "D-003 tampered signature → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"note\":\"tampered sig\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.957Z"
    },
    {
      "id": "QA-SECURITY-202",
      "module": "SECURITY",
      "screen": "Static assets",
      "scenario": "D-003 expired signature → 401",
      "expected": "HTTP 401",
      "actualStatus": 401,
      "actual": "{\"note\":\"expired sig\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.958Z"
    },
    {
      "id": "QA-SECURITY-203",
      "module": "SECURITY",
      "screen": "Static assets",
      "scenario": "D-003 Bearer JWT upload access → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"note\":\"bearer jwt\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.962Z"
    },
    {
      "id": "QA-SECURITY-204",
      "module": "SECURITY",
      "screen": "Static assets",
      "scenario": "GET /api/downloads/file/<file> → public APK mount, 404/200 by design",
      "expected": "HTTP 404 or 200",
      "actualStatus": 404,
      "actual": "{\"note\":\"apk static - public by design (QR targets)\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.965Z"
    },
    {
      "id": "QA-SECURITY-205",
      "module": "SECURITY",
      "screen": "Input limits",
      "scenario": "200KB JSON body → 413 payload too large",
      "expected": "HTTP 413",
      "actualStatus": 413,
      "actual": "{\"message\":\"request entity too large\",\"code\":\"PAYLOAD_TOO_LARGE\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.969Z"
    },
    {
      "id": "QA-SECURITY-206",
      "module": "SECURITY",
      "screen": "Input limits",
      "scenario": "malformed JSON body → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Unexpected end of JSON input\",\"code\":\"BAD_JSON\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.972Z"
    },
    {
      "id": "QA-SECURITY-207",
      "module": "SECURITY",
      "screen": "Routing",
      "scenario": "unknown API route → 404",
      "expected": "HTTP 404",
      "actualStatus": 404,
      "actual": "{\"message\":\"Route not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.973Z"
    },
    {
      "id": "QA-SECURITY-208",
      "module": "SECURITY",
      "screen": "Auth hygiene",
      "scenario": "DB: no lingering lockouts for qa_ users after cleanup",
      "expected": "count=0",
      "actualStatus": 200,
      "actual": "[{\"c\":0}]",
      "pass": true,
      "note": "cleanup deletes qa_lock user; lockout rows keyed by email",
      "ts": "2026-10-19T05:21:46.974Z"
    },
    {
      "id": "QA-BOUNDARY-209",
      "module": "BOUNDARY",
      "screen": "Pagination",
      "scenario": "page=0 → 200 clamped (or 400)",
      "expected": "HTTP 200/400, no 500",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":72,\"name\":\"<script>alert('qaxss')</script>\",\"status\":\"inactive\",\"updated_at\":\"2026-10-19T05:21:46.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\",\"created_by_name\":\"Administrator\"},{\"id\":71,\"n…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.979Z"
    },
    {
      "id": "QA-BOUNDARY-210",
      "module": "BOUNDARY",
      "screen": "Pagination",
      "scenario": "page=-5 → 200/400, no 500",
      "expected": "HTTP 200/400",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":72,\"name\":\"<script>alert('qaxss')</script>\",\"status\":\"inactive\",\"updated_at\":\"2026-10-19T05:21:46.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\",\"created_by_name\":\"Administrator\"},{\"id\":71,\"n…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:46.986Z"
    },
    {
      "id": "QA-BOUNDARY-211",
      "module": "BOUNDARY",
      "screen": "Pagination",
      "scenario": "limit=100000 → 200 (server clamps to MAX_LIMIT=5000)",
      "expected": "HTTP 200, rows ≤ 5000",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":72,\"name\":\"<script>alert('qaxss')</script>\",\"status\":\"inactive\",\"updated_at\":\"2026-10-19T05:21:46.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\",\"created_by_name\":\"Administrator\"},{\"id\":71,\"n…",
      "pass": true,
      "note": "app.js global pagination middleware clamps limit to 5000",
      "ts": "2026-10-19T05:21:46.996Z"
    },
    {
      "id": "QA-BOUNDARY-212",
      "module": "BOUNDARY",
      "screen": "Pagination",
      "scenario": "limit=abc (NaN) → 200/400, no 500",
      "expected": "HTTP 200/400",
      "actualStatus": 200,
      "actual": "{\"data\":[{\"id\":72,\"name\":\"<script>alert('qaxss')</script>\",\"status\":\"inactive\",\"updated_at\":\"2026-10-19T05:21:46.000Z\",\"created_by\":1,\"created_at\":\"2026-10-19T05:21:46.000Z\",\"created_by_name\":\"Administrator\"},{\"id\":71,\"n…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:47.003Z"
    },
    {
      "id": "QA-BOUNDARY-213",
      "module": "BOUNDARY",
      "screen": "Length limits",
      "scenario": "5000-char state name → 400/413/500 recorded",
      "expected": "graceful 4xx preferred",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name must be at most 100 characters\"}",
      "pass": true,
      "note": "accepted/limited with 400",
      "ts": "2026-10-19T05:21:47.008Z"
    },
    {
      "id": "QA-BOUNDARY-214",
      "module": "BOUNDARY",
      "screen": "Validation",
      "scenario": "empty JSON body create state → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:47.014Z"
    },
    {
      "id": "QA-BOUNDARY-215",
      "module": "BOUNDARY",
      "screen": "Validation",
      "scenario": "empty-string name → 400",
      "expected": "HTTP 400",
      "actualStatus": 400,
      "actual": "{\"message\":\"Name is required\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:47.018Z"
    },
    {
      "id": "QA-BOUNDARY-216",
      "module": "BOUNDARY",
      "screen": "ID handling",
      "scenario": "string-safe GET job by numeric id → 200",
      "expected": "HTTP 200",
      "actualStatus": 200,
      "actual": "{\"data\":{\"id\":20,\"job_no\":\"JOB-20261019-0020\",\"job_date\":\"2026-10-19T18:30:00.000Z\",\"job_end_date\":\"2026-10-20T18:30:00.000Z\",\"state_id\":67,\"location_id\":19,\"customer_id\":33,\"branch_id\":15,\"material_id\":null,\"service_typ…",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:47.041Z"
    },
    {
      "id": "QA-BOUNDARY-217",
      "module": "BOUNDARY",
      "screen": "ID handling",
      "scenario": "GET job id=abc → 404/400, no 500",
      "expected": "HTTP 4xx",
      "actualStatus": 404,
      "actual": "{\"message\":\"Job not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:47.046Z"
    },
    {
      "id": "QA-BOUNDARY-218",
      "module": "BOUNDARY",
      "screen": "ID handling",
      "scenario": "GET job id=-1 → 404/400, no 500",
      "expected": "HTTP 4xx",
      "actualStatus": 404,
      "actual": "{\"message\":\"Job not found\"}",
      "pass": true,
      "note": "",
      "ts": "2026-10-19T05:21:47.051Z"
    }
  ]
}