diff --git a/docs/development/SECURITY_CHANGES.md b/docs/development/SECURITY_CHANGES.md index 6522295..c86ba7d 100644 --- a/docs/development/SECURITY_CHANGES.md +++ b/docs/development/SECURITY_CHANGES.md @@ -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 diff --git a/tests/README-CLEANUP.md b/tests/README-CLEANUP.md index d41f2ff..6ee445c 100644 --- a/tests/README-CLEANUP.md +++ b/tests/README-CLEANUP.md @@ -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