Test Plan: [Project Name / Release]
Last Updated: [YYYY-MM-DD]
Related PRD: ./prd.md
1. Scope of Testing
- Features Covered: [List MVP features included in this test pass]
- Out of Scope: [Deferred features not in v1]
2. Automated Tests
Unit Tests (Isolated Logic & Helpers)
-
[Helper/function name]— valid input returns expected value -
[Helper/function name]— empty/malformed input returns validation error
Integration Tests (API Endpoints + Database)
-
POST /api/...— creates record with valid input (201) and rejects blank/invalid input (400) -
GET /api/...— returns only records belonging to the authenticated user (if multi-user) -
DELETE /api/...— blocks User B from deleting User A's record (403/404)
Command to run all automated tests: [e.g., npm test / pytest]
Last observed result: [e.g., 14 passed, 0 failed on YYYY-MM-DD]
3. Critical Manual End-to-End Flows (Browser Checklist)
| # | Flow & Action | Expected Result | Pass? |
|---|---|---|---|
| 1 | Open app with zero items | Friendly empty state appears (no crash/blank screen) | [ ] |
| 2 | Create primary item + refresh page | Item saves and remains visible after reload | [ ] |
| 3 | Submit empty or invalid form | Inline validation message shown; nothing invalid saved | [ ] |
| 4 | Update / toggle item + refresh | Updated state persists cleanly | [ ] |
| 5 | Delete item + refresh | Item removed cleanly without breaking list | [ ] |
4. Security, Edge Cases & Device Checks
- Secrets check:
.envignored by Git; no API keys or passwords in frontend JS or repo history - Mobile viewport check: Tested on a ~375px wide phone screen (no cut-off buttons or horizontal overflow)
- Network/Server failure check: Friendly error message shown if backend returns an error
- Console check: Zero unhandled red errors in Browser DevTools Console