Add end-to-end testing infrastructure for the application: - Implemented Playwright E2E test suite with 31 passing tests across authentication and feature workflows - Created mock API fixtures for testing without requiring backend/database - Added data-testid attributes to major React components (Login, Register, TaskList, Events, SocialFeed, Profile, Navbar) - Set up test fixtures with test images (profile-pic.jpg, test-image.jpg) - Configured playwright.config.js for multi-browser testing (Chromium, Firefox, Safari) Test Coverage: - Authentication flows (register, login, logout, protected routes) - Task management (view, complete, filter, search) - Social feed (view posts, create post, like, view comments) - Events (view, join/RSVP, filter, view details) - User profile (view profile, streets, badges, statistics) - Premium features page - Leaderboard and rankings - Map view 🤖 Generated with OpenCode Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
10 lines
145 B
JSON
10 lines
145 B
JSON
{
|
|
"dependencies": {
|
|
"mongoose": "^8.19.2",
|
|
"nodemailer": "^7.0.10"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.57.0"
|
|
}
|
|
}
|