Commit Graph

10 Commits

Author SHA1 Message Date
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]
3c2c511ecc Add end-to-end tests for submission rate limiting
Implement comprehensive end-to-end tests for all 17 submission types to verify the rate limiting fix. This includes testing the 5/minute limit, the 20/hour limit, and the 60-second cooldown period across park creation/updates, ride creation, and company-related submissions (manufacturer, designer, operator, property owner). The tests are designed to systematically trigger rate limit errors and confirm that submissions are correctly blocked after exceeding the allowed limits.
2025-11-08 00:34:07 +00:00
gpt-engineer-app[bot]
809627ccb6 feat: Update test data generators 2025-11-04 17:21:56 +00:00
gpt-engineer-app[bot]
a9644c0bee Approve tool use 2025-11-02 21:46:47 +00:00
gpt-engineer-app[bot]
41560d9c42 Implement complete roadmap 2025-11-02 21:22:03 +00:00
gpt-engineer-app[bot]
8feb01f1c3 Implement Phases 5 & 6 2025-11-02 21:11:18 +00:00
gpt-engineer-app[bot]
3318fdaa3f Fix: Make test user creation idempotent 2025-10-30 17:53:52 +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