A modern frontend chat interface with comprehensive e2e testing using Playwright.
- 💬 Interactive Chat Interface - Clean, modern UI with user/bot message distinction
- 🌐 Static Frontend - Pure HTML/CSS/JavaScript implementation
- 🔄 Live Reload - Automatic browser refresh during development
- 🧪 E2E Testing - Comprehensive Playwright test suite for performance, security, and UX
- ⚡ Hot Reload - Automatic refresh during development
- Node.js (v18+)
- Modern web browser
Start the development environment:
npm run devThis command will:
- 🖥️ Start the chat interface at
http://127.0.0.1:5500with live reload - 🌐 Automatically open the chat in your browser
npm run dev # Start development server with live reload
npm run start # Start the chat client (alias for dev)
npm test # Run e2e tests
npm run test:all # Run all test suites
npm run test:performance # Run performance tests
npm run test:security # Run security tests
npm run test:ux # Run user experience testsFrontend Chat Client (5500)
↓
Live Server
Static HTML/CSS/JS
E2E Test Coverage
- Chat Client (
chat.html) - Frontend interface with interactive chat functionality - E2E Tests (
tests/) - Playwright test suite for performance, security, and UX validation
Run the comprehensive e2e test suite:
npm testTest categories:
- Performance Tests - Response time, load testing, consistency checks
- Security Tests - Input validation, injection resistance, data protection
- UX Tests - User experience, accessibility, interface responsiveness
Individual test suites:
npm run test:performance # Performance and load tests
npm run test:security # Security vulnerability tests
npm run test:ux # User experience tests
npm run test:all # All tests combinedchat-client/
├── chat.html # Main chat interface
├── package.json # Dependencies and scripts
├── playwright.config.js # E2E test configuration
├── tests/
│ ├── performance/
│ │ └── performance.spec.js # Performance tests
│ ├── security/
│ │ └── security.spec.js # Security tests
│ ├── user-experience/
│ │ └── ux.spec.js # UX tests
│ ├── run-all-tests.js # Test runner
│ ├── run-performance-test.js # Performance test runner
│ ├── run-security-test.js # Security test runner
│ ├── run-ux-test.js # UX test runner
│ └── README.md # Test documentation
└── README.md # This file
- Start Development:
npm run dev - Make Changes: Edit
chat.html - See Changes: Browser auto-refreshes with live reload
- Test Changes:
npm testto run e2e tests - Deploy: Ready for production use
For production deployment:
- Serve the
chat.htmlfile from any static web server - Configure proper HTTPS for secure communication
- Set up proper CSP headers for security
- Run tests regularly to ensure quality
Happy coding! 🎉