================================================================================ TEST 1: Scanner Login - Success ================================================================================ [TEST 1] Login with valid UUID and PIN  ✗ Expected 200, got 422  ✗ Response success flag is not true  ✗ No token in response  ✗ Scanner ID missing from response ================================================================================ TEST 2: Token Verification ================================================================================ → Skipping verify test - no token from login ================================================================================ TEST 3: Token Refresh ================================================================================ → Skipping refresh test - no token from login ================================================================================ TEST 4: Invalid Credentials ================================================================================ [TEST 2] Login with invalid PIN  ✗ Expected 401, got 422  ✗ Expected error 'invalid_credentials'  ✗ No attempts_remaining in response ================================================================================ TEST 5: Unregistered Device ================================================================================ [TEST 3] Login with unregistered device UUID  ✓ Status code: 422 Unprocessable Entity  ✓ Error code is 'device_not_registered' ================================================================================ TEST 6: Validation Errors ================================================================================ [TEST 4] Login with invalid UUID format  ✓ Status code: 422 Unprocessable Entity  ✓ Validation error for device_uuid [TEST 5] Login with invalid PIN format  ✓ Status code: 422 ================================================================================ TEST 7: Missing Authorization Header ================================================================================ [TEST 6] Verify endpoint without token  ✓ Status code: 401  ✓ Error code is 'token_absent' ================================================================================ TEST SUMMARY ================================================================================ Total Tests: 6 Passed: 7 Failed: 7 ✗ SOME TESTS FAILED