diff --git a/__tests__/manual/KYCManual.html b/__tests__/manual/KYCManual.html new file mode 100644 index 00000000..70b2bab2 --- /dev/null +++ b/__tests__/manual/KYCManual.html @@ -0,0 +1,211 @@ + + +
+ +| # | +Test Name | +Category | +Priority | +Preconditions | +Steps | +Expected Result | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|---|
| 1 | +Upload valid NIC + selfie | +CREATION | +HIGH | +User logged in; KYC form visible | +
+ 1. Enter full name 2. Enter valid NIC 3. Upload NIC file + (<2MB) 4. Upload selfie-with-NIC 5. Click Submit + |
+ + New submission appears in Admin KYC list with status “Not Reviewed” + | +new submission appears | +PASS | +
| 2 | +Reject blank-field submission | +VALIDATION | +HIGH | +KYC page loaded | +1. Leave all fields empty 2. Click Submit |
+ + Inline errors under each field (“Full Name is required”, etc.); form + not submitted + | +please fill out this field appeared | +PASS | +
| 3 | +Reject invalid NIC format | +VALIDATION | +MEDIUM | +KYC form visible | +1. Enter “abc123” in NIC Number 2. Click Submit |
+ + Validation message “Enter a valid NIC” under NIC field; no + submission + | ++ Red inline error was there until we enter correct format "Enter + either Old NIC (9 digits + V/X) or New NIC (12 digits)" + | +PASS | +
| 4 | +Reject oversize file upload | +VALIDATION | +MEDIUM | +KYC form visible | +1. Select >2MB file for NIC Document 2. Click Submit |
+ Error toast “File must be under 2MB”; input resets | +file must be less than 2MB inline error | +PASS | +
| 5 | +View pending submissions | +FILTERING | +LOW | +At least one KYC exists | +1. Navigate to KYC tab 2. Observe table |
+ + Table lists NIC, Recipient, Date Submitted, Status, Reviewed, + Documents, Accept/Reject + | +yes all the columns were present | +PASS | +
| 6 | +Download NIC & selfie files | +FUNCTIONALITY | +MEDIUM | +KYC list visible | +1. Click download NIC icon 2. Click download Person icon |
+ Each file downloads with correct name and content | +file downloaded after a click | +PASS | +
| 7 | +Accept a KYC submission | +WORKFLOW | +HIGH | +One “Not Reviewed” row present | +1. Click green ✔ 2. Confirm if prompted |
+ Status → “Accepted”; Reviewed date = today | +accepted as expected | +PASS | +
| 8 | +Reject a KYC submission | +WORKFLOW | +HIGH | +One “Not Reviewed” row present | +1. Click red ✖ 2. Confirm if prompted |
+ Status → “Rejected”; Reviewed date = today | +Rejected as expected | +PASS | +
| 9 | +Search by recipient name | +FILTERING | +LOW | +Multiple names present | +1. Type partial name in search box | +Table filters to matching Recipient rows | +- | +PASS | +
| 10 | +Sort by date submitted | +SORTING | +LOW | +Table visible | +1. Click Date Submitted header 2. Click again |
+ Rows toggle ascending/descending by Date Submitted | +yes it works as expected | +PASS | +
| 11 | +Filter by status | +FILTERING | +LOW | +Various statuses exist | +1. Open status dropdown 2. Select “Accepted” |
+ Table shows only rows with Status = Accepted | +only showed acccepted records | +PASS | +
Tester: P. Renulucshmi
+Date: 2025-07-17
+| # | +Test Name | +Category | +Priority | +Preconditions | +Test Steps | +Expected Result | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|---|
| RP01 | +Reporting List Renders | +VIEW | +HIGH | +Logged in as Admin; ≥1 report exists | +
+ 1. Navigate to Reporting + 2. Wait for table to load + |
+ Table displays all columns and rows correctly | +All reports appeared as expected | +PASS | +
| RP02 | +Search Reports | +FUNCTIONALITY | +MEDIUM | +≥3 reports with distinct data | +
+ 1. Enter “Not Following” in search + 2. Press Enter + |
+ Only matching rows remain visible | +Search filtered correctly | +PASS | +
| RP03 | +Filter by Status | +FUNCTIONALITY | +MEDIUM | +Reports in multiple statuses exist | +
+ 1. Open Status dropdown + 2. Select “Under Review” + |
+ Only “Under Review” rows remain | +Filter worked as expected | +PASS | +
| RP04 | +Download Report Data | +UTILITY | +LOW | +Table loaded | ++ 1. Click the download (↓) icon on a row + | +Report data downloads successfully | +Download triggered with correct payload | +PASS | +
| RP05 | +Email Reporting User | +WORKFLOW–EMAIL | +HIGH | +A pending report exists | +
+ 1. Click ✉️ next to Reporting User + 2. Send “Investigating…” email + |
+ Status changes to “Under Review” | +Email sent; status updated | +PASS | +
| RP06 | +Email Reported User | +WORKFLOW–EMAIL | +HIGH | +Report is “Under Review” | +
+ 1. Click ✉️ next to Reported User + 2. Send “Please provide details” email + |
+ Email confirmation shown | +Email sent successfully | +PASS | +
| RP07 | +Issue Warning on False Report | +WORKFLOW–ACTION | +MEDIUM | +Status “Under Review” | +
+ 1. Click ❌ (reject) icon + 2. Choose “Warn Reporter” + |
+ Reporter warned; status = “Resolved – Reporter Warned” | +Warning email sent; status updated | +PASS | +
| RP08 | +Issue Warning to Reported User | +WORKFLOW–ACTION | +MEDIUM | +Status “Under Review” | +
+ 1. Click 🛡️ (warn) icon + 2. Confirm + |
+ Reported user warned; status = “Resolved – Reported Warned” | +Warning email sent; status updated | +PASS | +
| RP09 | +Resolve Report | +WORKFLOW–COMPLETE | +HIGH | +Any non-resolved status | +
+ 1. Click ✔️ (resolve) icon + 2. Confirm + |
+ Status changes to “Resolved” | +Report marked Resolved | +PASS | +
Tester: P. Renulucshmi
+Date: 2025-07-17
+ +| # | +Test Name | +Category | +Priority | +Preconditions | +Test Steps | +Expected Result | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|---|
| 1 | +Dashboard Cards Load | +VIEW | +HIGH | +Logged in as Admin/SuperAdmin | +1. Navigate to /admin/dashboard 2. Wait for page load |
+ All five metric cards appear with correct values | +its loading as expected | +PASS | +
| 2 | +Cards Accuracy | +VERIFICATION | +HIGH | +Dashboard loaded; known backend data | +1. Compare card values to API/DB 2. Refresh page |
+ Each card value matches the source of truth | +it matches with database count as well | +PASS | +
| 3 | +Registration Chart Plot | +VISUALIZATION | +MEDIUM | +≥1 registration record exists | +1. Observe line chart 2. Hover data points |
+ Chart shows daily points; tooltip shows date & count | ++ when hover points in shows no of users registered on a specific day + | +PASS | +
| 4 | +Chart Date Range Filter | +FUNCTIONALITY | +MEDIUM | +Date‑range dropdown visible | +1. Select Last 7 Days 2. Select All Time |
+ Chart re‑renders to selected range | +chart re renders when we change the drop down | +PASS | +
| 5 | +Skill Distribution Donut | +VISUALIZATION | +MEDIUM | +≥1 skill assignment exists | +1. Observe donut chart 2. Hover slices |
+ Each slice shows category & %; total sums to 100% | +each hover shows no of skills in each cateogory | +PASS | +
| 6 | +Loading Skeletons | +UX | +LOW | +Network throttled | +1. Throttle to Slow 3G 2. Reload page |
+ Skeleton placeholders displayed until data arrives | +until data arrives it shows loading sign | +PASS | +
| 7 | +Network Calls Verification | +DEBUG | +LOW | +DevTools open | +1. Monitor Network tab 2. Reload page |
+ GET /api/dashboard fires once; no 404/500 errors | ++ A single GET /api/dashboard request fired on load (200 OK), followed + by two GET /api/skillLists requests; no 404/500 errors. + | +PASS | +
Tester: P. Renulucshmi
+Date: 2025-07-17
+ +| # | +Test Name | +Priority | +Preconditions | +Steps | +Expected | +Actual | +Status | +
|---|---|---|---|---|---|---|---|
| 1 | +Page Load & UI Elements | +HIGH | +Browser open; Admin login page reachable | +Navigate to /admin/login Observe form fields and buttons |
+ Username, Password fields and Login button are visible | +yes can view the page | +PASS | +
| 2 | +Empty Fields Validation | +MEDIUM | +Login page open | +Leave both fields blank Click Login |
+ Inline errors: “Username required” and “Password required” | +yes validated | +PASS | +
| 3 | +Invalid Credentials | +HIGH | +Login page open | +Enter wrong username/password Click Login |
+ Error toast: “Invalid credentials” | +Invalid username or password inline error | +PASS | +
| 4 | +Successful Login | +HIGH | +Valid admin credentials | +Fill in correct username & password Click Login |
+ Redirect to /admin/dashboard | +it redirect to dashboard | +PASS | +
| 5 | +Password Mask Toggle | +LOW | +Login form visible | +Enter password Click show/hide icon |
+ Password toggles between masked and plain text | +when click the toggle password is visible | +PASS | +
| # | +Test Name | +Category | +Priority | +Preconditions | +Test Steps | +Expected Result | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|---|
| 1 | +View Admin List | +VIEWING | +MEDIUM | +Logged in as Admin or Super Admin; Admin Management page open | +
+ 1. Navigate to Admin Management 2. Wait for table to load + |
+ + Table shows Username, Email, Role, Permissions, Created, Actions; ≥1 + row present + | +table with the all columns showed | +PASS | +
| 2 | +Search by Username or Email | +FILTERING | +LOW | +Admin Mgmt page loaded with ≥2 entries | +1. Type part of a username or email into search box | +Only matching rows remain visible | +yes search box is functioning as expected | +PASS | +
| 3 | +Filter by Role | +FILTERING | +LOW | +Mixed Admin & Super Admin rows present | +1. Select Admin then Super Admin from dropdown | +Table filters to show only rows for the selected role | +filter show only respected column | +PASS | +
| 4 | +Edit Admin Details | +UPDATE | +MEDIUM | +At least one row present; Edit icon visible | +
+ 1. Click ✏️ on a row 2. Change email or role 3. Click Save + |
+ That row updates to reflect the new email/role | +the row update after edit | +PASS | +
| 5 | +Delete Another Admin | +DELETION | +HIGH | +Another user’s row exists | +1. Click 🗑️ on that row 2. Confirm deletion |
+ Row is removed; success message shown | +successfully deleted | +PASS | +
| 6 | +Prevent Self‑Deletion | +VALIDATION | +HIGH | +Your own row present | +1. Attempt to click 🗑️ on your own row | +Delete button disabled or error “Cannot delete yourself.” | +its not allowing to deleted myself | +PASS | +
| 7 | +Create New Admin (Super only) | +CREATION | +HIGH | +Logged in as Super Admin; Create Admin button visible | +
+ 1. Click Create Admin 2. Fill Username, Email, Password, + Role=Admin, Permissions 3. Click Create Admin + |
+ New admin appears in the table with correct details | +yes superadmin can create new admin | +PASS | +
| 8 | +Deny Access to Admin Mgmt (Admin only) | +VALIDATION | +HIGH | +Logged in as normal Admin | +1. Look for Admin Management tab/menu item | +No Admin Management entry is visible to normal Admin | ++ admin admin management tab is not visible. only visible for + superAdmin + | +PASS | +
| 9 | +Validate Create‑Form | +VALIDATION | +MEDIUM | +Create Admin modal open | +
+ 1. Leave required fields blank or invalid 2. Click Create Admin + |
+ Inline validation errors appear; form not submitted | +username ,password ,email validation are included | +PASS | +
| 10 | +Permission Persistence | +FUNCTIONALITY | +MEDIUM | +After Create or Edit | +1. Reload Admin Management page | +Created/edited admins & permissions persist correctly | +after reload also its persisted | +PASS | +
| # | +Test Name | +Category | +Priority | +Preconditions | +Test Steps | +Expected Result | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|---|
| 1 | +Badge Name Required | +ADD | +HIGH | +“Add New Badge” form visible; all fields empty | +
+ 1. Leave Badge Name blank 2. Fill other fields correctly 3. + Click Add Badge + |
+ Inline error “Badge Name is required”; form not submitted | +Badge name is required inline error | +PASS | +
| 2 | +Badge Name Min‑Length (≥3 chars) | +ADD | +MEDIUM | +“Add New Badge” form visible | +
+ 1. Enter 1–2 chars in Badge Name 2. Fill others correctly 3. + Click Add Badge + |
+ + Inline error “Name must be at least 3 characters”; submit disabled + | +inline error Badge name must be at least 3 characters long. | +PASS | +
| 3 | +Description Required & Min‑Length | +ADD | +HIGH | +“Add New Badge” form visible | +
+ 1. Leave Description blank or <10 chars 2. Fill other fields + correctly 3. Click Add Badge + |
+ + Inline error “Description must be at least 10 characters”; form not + submitted + | +inline error showed | +PASS | +
| 4 | +Image Required & Format | +ADD | +HIGH | +“Add New Badge” form visible | +1. Leave Badge Image empty 2. Click Add Badge |
+ + Inline error “Please upload an image” or “Unsupported file format” + | ++ Invalid image type. Please use JPEG, PNG, GIF or WEBP inline error + | +PASS | +
| 5 | +Image Size Limit (≤2 MB) | +ADD | +MEDIUM | +“Add New Badge” form visible | +1. Upload file >2 MB 2. Click Add Badge |
+ Inline error “Image must be smaller than 2 MB” | +Image size should be less than 2MB inline error | +PASS | +
| 6 | +Edit Badge Inline Validation | +UPDATE | +HIGH | +At least one badge card present | +
+ 1. Click Edit on a badge 2. Clear or shorten Badge + Name/Description + |
+ Same inline errors as BM01–BM03; Save blocked until valid | +inline error showed | +PASS | +
| 7 | +Submit Edit Updates List | +UPDATE | +MEDIUM | +Edit form open; fields valid | +1. Modify name or image 2. Click Save |
+ Badge card updates immediately without full reload | +its updated without reloading page | +PASS | +
| 8 | +Delete Badge Confirmation | +DELETE | +MEDIUM | +At least one badge card present | +1. Click Delete on a badge 2. Confirm deletion |
+ + Confirmation dialog appears; after confirm, badge removed and + success alert shown + | +Badge deleted successfully! alert shown | +PASS | +
| # | +Test Name | +Priority | +Preconditions | +Test Steps | +Expected Result | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|
| 1 | +Page Load & Default List (BG01) | +High | +User authenticated; at least 1 badge exists | +
+ 1. Navigate to /badges+ 2. Wait for page load to complete + |
+ All badges rendered as cards; Category dropdown set to “All” | +yes worked as expected | +Pass | +
| 2 | +Filter by Category (BG02) | +Medium | +Multiple badges across categories exist | +
+ 1. Select “Achievement Milestone” in Category dropdown + 2. Observe the displayed badge list + |
+ Only “Achievement Milestone” badges remain visible | +work as expected | +Pass | +
Tester: P.Renlucshmi
+Date: 2025-07-17
+| # | +Test Name | +Priority | +Preconditions | +Steps | +Expected Result | +Exec Date | +Actual Result | +Status | +
|---|---|---|---|---|---|---|---|---|
| SU01 | +Suspend a User | +High | +User exists; Admin logged in | +
+ 1. Go to Users + 2. Click “Suspend” + 3. Enter reason + 4. Confirm + |
+ User moves to Suspended list | +2025‑07‑17 | +User moved from Users to Suspended Users | +Pass | +
| SU02 | +Search Suspended Users | +Medium | +≥1 suspended user | +
+ 1. Open Suspended Users + 2. Type search + |
+ Table filters to matching rows | +2025‑07‑17 | +Search works | +Pass | +
| SU03 | +Prevent Suspended Login | +High | +User is suspended | +1. Attempt login | +Login blocked with suspend message | +2025‑07‑17 | +User blocked from login | +Pass | +
| SU04 | +Prevent Re‑registration | +Medium | +Email suspended | +1. Sign up with same email | +Registration rejected: Email in use | +2025‑07‑17 | +Cannot create account with same email | +Pass | +
| SU05 | +Unsuspend a User | +High | +User in Suspended list | +
+ 1. Click ✓ + 2. Confirm + |
+ User moves back to Users list | +2025‑07‑17 | +User unsuspended and can log in again | +Pass | +
| SU06 | +Reason Validation | +Medium | +Suspend dialog open | +1. Click Confirm without reason | +Error: Reason is required | +2025‑07‑17 | +User isn’t suspended without a reason | +Pass | +