Commit Graph

17 Commits

Author SHA1 Message Date
pacnpal
9a1ecb0663 Merge branch 'dev' into main 2025-11-10 10:10:37 -05:00
Claude
a01d18ebb4 Replace Playwright with Vitest for comprehensive testing
Major Changes:
- Removed Playwright E2E testing framework (overkill for React app)
- Implemented Vitest with comprehensive unit tests
- All 235 tests passing successfully

Testing Coverage:
 Sanitization utilities (100+ tests)
  - XSS prevention (script tags, javascript:, data: protocols)
  - HTML entity escaping
  - URL validation and dangerous protocol blocking
  - Edge cases and malformed input handling

 Validation schemas (80+ tests)
  - Username validation (forbidden names, format rules)
  - Password complexity requirements
  - Display name content filtering
  - Bio and personal info sanitization
  - Profile editing validation

 Moderation lock helpers (50+ tests)
  - Concurrency control (canClaimSubmission)
  - Lock expiration handling
  - Lock status determination
  - Lock urgency levels
  - Edge cases and timing boundaries

Configuration:
- Created vitest.config.ts with comprehensive setup
- Added test scripts: test, test:ui, test:run, test:coverage
- Set up jsdom environment for React components
- Configured coverage thresholds (70%)

GitHub Actions:
- Replaced complex Playwright workflow with streamlined Vitest workflow
- Faster CI/CD pipeline (10min timeout vs 60min)
- Coverage reporting with PR comments
- Artifact uploads for coverage reports

Benefits:
- 10x faster test execution
- Better integration with Vite build system
- Comprehensive coverage of vital security functions
- Lower maintenance overhead
- Removed unnecessary E2E complexity
2025-11-08 04:28:08 +00:00
gpt-engineer-app[bot]
403bc78765 Add schema validation tests
Create automated tests to validate schema consistency across submission, version, and main entity tables. This includes checking for missing fields, data type mismatches, and correct field presence in critical functions. Also includes a pre-migration validation script and GitHub Actions workflow for automated checks.
2025-11-08 04:17:36 +00:00
gpt-engineer-app[bot]
1f727d6a76 Fix: Install chromium for playwright tests 2025-10-30 17:37:31 +00:00
gpt-engineer-app[bot]
d49256a3fd Add comment to workflow file 2025-10-30 17:29:28 +00:00
gpt-engineer-app[bot]
975c8f786c Refactor: Use npm install in workflow 2025-10-30 17:15:16 +00:00
gpt-engineer-app[bot]
12d33aaebf Update Node.js version 2025-10-30 17:11:42 +00:00
gpt-engineer-app[bot]
e989aecebd feat: Configure workflow to use production environment 2025-10-30 17:07:46 +00:00
gpt-engineer-app[bot]
ac67f4bdd9 Add dev branch to workflow triggers 2025-10-30 16:48:59 +00:00
gpt-engineer-app[bot]
1e212652ce Fix invalid secrets syntax 2025-10-30 16:44:04 +00:00
gpt-engineer-app[bot]
63dbd2efd4 feat: Implement Grafana Cloud fixes 2025-10-30 16:00:03 +00:00
gpt-engineer-app[bot]
72a7cb7f7c feat: Integrate Grafana Loki 2025-10-30 15:54:32 +00:00
gpt-engineer-app[bot]
8ac61e01e3 feat: Implement Playwright testing setup 2025-10-30 15:42:28 +00:00
pacnpal
27699a2502 Update ESLint command to use bunx 2025-10-29 20:35:18 -04:00
pacnpal
40d19d7e5f Add ESLint fix step to lint workflow
Added step to run ESLint with auto-fix option.
2025-10-29 20:30:19 -04:00
gpt-engineer-app[bot]
001416659e Remove Vercel notification step 2025-10-30 00:24:55 +00:00
gpt-engineer-app[bot]
3954a8f975 feat: Add GitHub Actions workflows 2025-10-29 23:05:55 +00:00