- Create detailed README.md with quick start and demo accounts - Add complete UI primitives documentation with examples - Document architecture patterns and design decisions - Update REBUILD_PLAN.md marking Phase 2 as complete - Include component usage guides and testing documentation - Document accessibility compliance and performance considerations Documentation provides complete developer onboarding experience with practical examples and architectural guidance. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2.3 KiB
2.3 KiB
QA Testing Quick Start Guide
Prerequisites
-
Start the development server (required for all tests):
npm run devWait for server to start on
http://localhost:5173 -
Install dependencies (one-time setup):
npm install npx playwright install
Running Tests
Option 1: Complete QA Suite (Recommended)
# Run all tests with comprehensive reporting
npm run test:qa
Option 2: Critical Tests Only
# Run only authentication and navigation tests
npm run test:qa:critical
Option 3: Individual Test Suites
npm run test:auth # Login/logout flows
npm run test:navigation # Menu and routing
npm run test:theme # Light/dark theme switching
npm run test:responsive # Mobile/tablet/desktop layouts
npm run test:components # UI elements and interactions
Option 4: Debug Mode (Visible Browser)
# Watch tests run in real browser windows
npm run test:qa:headed
Demo Accounts
Use these credentials when prompted:
- Admin:
admin@example.com/demo123 - Organizer:
organizer@example.com/demo123 - Staff:
staff@example.com/demo123
Results
After tests complete, check:
- Console Output - Pass/fail summary
- HTML Report - Open
./playwright-report/index.htmlin browser - Screenshots - Visual evidence in
./screenshots/folder - QA Summary - Executive report in
./test-results/qa-report.md
Success Criteria
✅ Ready for Production:
- All critical tests pass (auth + navigation)
- No console errors during test execution
- Screenshots show proper styling in light/dark themes
- Mobile layouts render correctly
⚠️ Needs Review:
- Critical tests failing
- UI elements not rendering as expected
- Accessibility issues detected
Troubleshooting
"Connection refused" errors:
- Ensure
npm run devis running in separate terminal - Wait for "Local: http://localhost:5173" message
Permission errors:
- Run
chmod 755 screenshotsto fix screenshot folder permissions
Browser issues:
- Run
npx playwright install --forceto reinstall browsers
Quick Health Check
# 2-minute smoke test (critical functionality only)
npm run test:qa:critical
This validates the most important user flows for premium venue customers.