docs: refine ai ui testing guidance

This commit is contained in:
2026-01-26 11:49:32 +08:00
parent 6086b982f8
commit 8b44767f11
3 changed files with 91 additions and 32 deletions

View File

@@ -25,6 +25,18 @@
- Go tests: `go test ./...` (some service tests exist under `backend/app/services/*_test.go`).
- Frontend: build + lint are the main checks (`npm -C frontend/superadmin run build && npm -C frontend/superadmin run lint`).
## AI UI Testing References
When driving browser tests via Chrome DevTools MCP, consult:
- `docs/seed_verification.md` (full UI flow + MCP steps)
- `frontend/portal/vite.config.js` (proxy + port)
- `frontend/superadmin/vite.config.mjs` (proxy + port)
- `frontend/portal/src/router/index.js` (portal routes)
- `frontend/superadmin/src/router/index.js` (superadmin routes)
- `backend/app/services/user.go` (OTP rule: `1234`)
- `backend/app/commands/seed/seed.go` (seed users/passwords)
## Planning Requirements
- Before any non-trivial development work, first produce a complete plan document (tasks, sequence, dependencies, and acceptance criteria) and get confirmation to proceed.