Web Application Testing
Read First
.AI/AGENT.md.AI/Context/Frontend_Reference.mddocs/implementation_plan.md
This repo may still be documentation-first. If client/ or server/ has not been scaffolded yet, say that plainly instead of inventing a runtime.
What To Verify
Shared Auth
/login/signup/forgot-password
Admin Desktop
/admin/dashboard/admin/employees/admin/import/admin/hierarchy/admin/approval-rules/admin/categories/admin/expenses/admin/reports/admin/payments
Employee And Manager Mobile
/expenses/expenses/new/expenses/:id/expenses/:id/split/scan/approvals/approvals/:id/team-expenses
Testing Expectations
- Verify admin screens at desktop widths
- Verify employee and manager flows in Chrome mobile emulation
- Check loading, empty, error, and confirmation states
- Check labels, required markers, status badges, and table or modal keyboard behavior
- Confirm API-backed screens use contract-accurate mock data when the backend is not ready yet
Tooling Pattern
- Prefer Playwright
- Use the bundled
scripts/with_server.pyhelper when local servers need orchestration - Run helper scripts with
--helpfirst instead of reading their source by default
Common Pitfalls
- Do not inspect a dynamic page before the app settles
- Do not verify only the happy path
- Do not skip responsive checks on employee or manager routes
- Do not mark a screen done without checking status, validation, and destructive-action behavior