docs: update references to removed debug and deployment files
- Update tests/README-CLEANUP.md to reflect removal of auth-debug files - Update docs/development/SECURITY_CHANGES.md to remove Gitea references - Ensures documentation accurately reflects current codebase state - Maintains consistency between docs and actual file structure
This commit is contained in:
@@ -4,9 +4,12 @@
|
||||
|
||||
### ❌ Removed Files
|
||||
|
||||
- `manual/admin-login-debug.js` → Replaced by `e2e/auth-debug.spec.ts`
|
||||
- `manual/admin-login-debug.js` → Replaced by `e2e/auth.spec.ts`
|
||||
- `manual/auth-db-debug.js` → Replaced by automated E2E tests
|
||||
- `manual/debug-email-validation.js` → Integrated into auth E2E tests
|
||||
- `e2e/auth-debug.spec.ts` → Functionality merged into `e2e/auth.spec.ts`
|
||||
- `e2e/auth-debug-setup.ts` → Replaced by standard test setup
|
||||
- `e2e/auth-debug-teardown.ts` → No longer needed
|
||||
|
||||
### ✅ Optimizations
|
||||
|
||||
@@ -27,9 +30,8 @@ tests/
|
||||
│ ├── production.test.js # Production readiness
|
||||
│ └── run-integration.sh # ✨ New: Test runner
|
||||
├── e2e/ # End-to-end tests
|
||||
│ ├── auth-debug.spec.ts # ✨ New: Replaces manual auth tests
|
||||
│ ├── test-utils.ts # ✨ New: Shared utilities
|
||||
│ ├── auth.spec.ts # Authentication flows
|
||||
│ ├── auth.spec.ts # Authentication flows (includes admin tests)
|
||||
│ ├── medication.spec.ts # Medication management
|
||||
│ ├── admin.spec.ts # Admin interface
|
||||
│ ├── ui-navigation.spec.ts # UI and navigation
|
||||
@@ -69,18 +71,18 @@ Instead of manual browser scripts, use:
|
||||
make test-e2e-ui
|
||||
|
||||
# Debug specific auth issues
|
||||
bunx playwright test auth-debug.spec.ts --debug
|
||||
bunx playwright test auth.spec.ts --debug
|
||||
```
|
||||
|
||||
## Migration Guide
|
||||
|
||||
### Manual Tests → E2E Tests
|
||||
|
||||
| Old Manual Script | New E2E Test | Purpose |
|
||||
| --------------------------- | -------------------- | ------------------------------- |
|
||||
| `admin-login-debug.js` | `auth-debug.spec.ts` | Admin authentication validation |
|
||||
| `auth-db-debug.js` | `auth-debug.spec.ts` | Database auth testing |
|
||||
| `debug-email-validation.js` | `auth-debug.spec.ts` | Email format validation |
|
||||
| Old Manual Script | New E2E Test | Purpose |
|
||||
| --------------------------- | -------------- | ------------------------------- |
|
||||
| `admin-login-debug.js` | `auth.spec.ts` | Admin authentication validation |
|
||||
| `auth-db-debug.js` | `auth.spec.ts` | Database auth testing |
|
||||
| `debug-email-validation.js` | `auth.spec.ts` | Email format validation |
|
||||
|
||||
### Benefits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user