892 B
892 B
SkillMate Smoke Tests (Manual)
Environment
- Ensure backend starts:
npm run devinbackend - Ensure frontend starts:
npm run devinfrontend - Optional admin panel:
npm run devinadmin-panel
Checklist
-
Auth/Login
- POST /api/auth/login with valid admin (admin/admin123)
- Expect 200, token present, user role admin
-
Employees (public list)
- GET /api/employees/public (with token)
- Expect 200, array payload
-
Employees (CRUD minimal)
- POST /api/employees with minimal valid payload
- Expect 201, id present
- GET /api/employees/:id returns same data
- PUT /api/employees/:id updates simple field, expect 200
- DELETE /api/employees/:id expect 200
-
Skills
- GET /api/skills expect 200, array
-
Settings
- GET /api/admin/settings expect 200 (with admin)
Notes
- In production, JWT_SECRET must be set or backend refuses to start.