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:
William Valentin
2025-09-08 22:18:41 -07:00
parent ad8a16271c
commit 10e0d6d14b
2 changed files with 13 additions and 19 deletions

View File

@@ -32,9 +32,6 @@ Updated all deployment and build scripts with secure password fallbacks:
### 4. CI/CD Workflows
- **`.github/workflows/build-deploy.yml`**: Updated fallback passwords to secure values
- **`.gitea/workflows/ci-cd.yml`**: Updated fallback passwords to secure values
- **`.gitea/docker-compose.ci.yml`**: Updated test database passwords
- **`.gitea/gitea-bake.hcl`**: Updated default password variables
### 5. Environment Files
@@ -46,8 +43,7 @@ Updated all deployment and build scripts with secure password fallbacks:
- **`README.md`**: Updated default admin credentials documentation
- **`SECURITY.md`**: Created comprehensive security guide with checklists
- **`.gitea/README.md`**: Updated documentation
- **`GITEA_SETUP.md`**: Updated setup instructions
- **`README.md`**: Updated documentation
## 🛡️ Security Improvements
@@ -105,9 +101,6 @@ Updated all deployment and build scripts with secure password fallbacks:
- `.env.production`
- `test.env`
- `.github/workflows/build-deploy.yml`
- `.gitea/workflows/ci-cd.yml`
- `.gitea/docker-compose.ci.yml`
- `.gitea/gitea-bake.hcl`
### Scripts (8)
@@ -124,8 +117,7 @@ Updated all deployment and build scripts with secure password fallbacks:
- `README.md`
- `SECURITY.md` (created)
- `SECURITY_CHANGES.md` (this file)
- `.gitea/README.md`
- `GITEA_SETUP.md`
- `README.md`
## ✅ Verification

View File

@@ -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