Test plansClinic app
Test Plan: Clinic App - Authentication
Module: Clinic App - Authentication URL: https://practice-stg-new.kulcare.com/signup Status: ✅ Complete (Tested 2026-06-11)
Test Data Requirements
| Type | Data | Purpose |
|---|---|---|
| Existing Clinic User | Phone: registered, Password: correct | Test login |
| New User | Phone: unregistered | Test signup |
| Multiple Clinics | User with 2+ clinics | Test clinic selection |
Test Cases
Happy Path
| # | Test Case | Priority | Steps | Expected | Result |
|---|---|---|---|---|---|
| 1 | Clinic Signup - Complete flow | P0 | Fill form → Submit → OTP → Verify | Account created | ✅ Pass |
| 2 | Clinic Login | P0 | Enter phone + password | Logged in | ✅ Pass |
| 3 | Logout | P0 | Click logout | Logged out | ✅ Pass |
| 4 | Forgot Password | P0 | Click forgot → Enter phone → Submit | Reset flow works | ✅ Pass |
| 5 | Multi-clinic selection | P0 | User with 2+ clinics → Select clinic | Correct clinic selected | ✅ Pass |
| 6 | Role-based signup | P0 | Signup with different roles | Correct permissions | ✅ Pass |
Validation
| # | Test Case | Priority | Steps | Expected | Result |
|---|---|---|---|---|---|
| 7 | Empty phone number | P0 | Submit without phone | Error shown | ✅ Pass |
| 8 | Phone with letters | P0 | Enter letters in phone | Error shown | ✅ Pass |
| 9 | Short password | P0 | Enter < 8 chars | Error shown | ✅ Pass |
| 10 | Password without number | P0 | Enter without number | Error shown | ✅ Pass |
| 11 | Name with numbers | P0 | Enter 123 in name | Error shown | ✅ Pass |
| 12 | Invalid email format | P0 | Enter invalid@email | Error shown | ✅ Pass |
| 13 | Wrong OTP | P0 | Enter wrong OTP | Error shown | ✅ Pass |
Edge Cases
| # | Test Case | Priority | Steps | Expected | Result |
|---|---|---|---|---|---|
| 14 | Already registered phone | P0 | Enter registered phone | Error shown | ❌ FAIL |
| 15 | Resend OTP | P0 | Click resend | OTP resent | ❌ FAIL |
| 16 | Switch country code | P1 | Change country code | Updates correctly | ✅ Pass |
| 17 | Login without account | P1 | Enter unregistered phone | Error shown | ✅ Pass |
| 18 | Login with wrong password | P1 | Enter wrong password | Error shown | ✅ Pass |
| 19 | Session persistence | P1 | Close browser → Reopen | Session maintained | ✅ Pass |
Bugs Found
| Bug # | Description | Severity | Status |
|---|---|---|---|
| 8 | Error message not user-friendly | 🟠 Medium | Open |
| 9 | Resend OTP gives 500 error | 🟡 High | Open |
Test Execution Checklist
- TC-1 to TC-19
Test Plan Status: ✅ Complete
Tested: 2026-06-11
Session File: ../test-reports/sessions/03-clinic-app-auth.md