This page tests the field-specific error handling implementation for the registration form.
Before Fix: Generic "Registration failed. Please try again." banner at the top
After Fix: Specific field errors below each problematic field
Try registering with an existing username (e.g., "admin", "test", "user")
Expected: Red error message below username field: "This username is already taken. Please choose another."
No generic banner should appear at the top
Try registering with an existing email address
Expected: Red error message below email field: "This email is already registered. Please use a different email."
No generic banner should appear at the top
Try registering with an existing phone number
Expected: Red error message below phone field: "This phone number is already registered. Please use a different phone number."
No generic banner should appear at the top
Try registering with multiple invalid fields (e.g., invalid email + weak password)
Expected: Multiple red error messages below respective fields
No generic banner should appear at the top
Try submitting with empty fields or invalid formats
Expected: Specific error messages below each invalid field
No generic banner should appear at the top
python app.py (Backend on port 7060)
python run_frontend.py (Frontend on port 8000)
https://prodevroger-ishingiro.hf.space/registerOpen browser developer tools (F12) and check the console for these logs:
Registration error: - Shows the full error objectParsed error data: - Shows parsed JSON error responseServer errors: - Shows field-specific errors from serverShowing error for field [fieldId]: [error message] - Shows which field gets which error
{"errors": {"field": "message"}}{"errors": {"field": "message"}}