E2E Testing
Key User Flows to Test
- Registration -> Login -> Dashboard
- CRUD operations (create, read, update, delete)
- Payment flow (if applicable)
- Error handling (invalid input, network failure)
Best Practices
- Test user behavior, not implementation
- Use data-testid attributes for selectors
- Clean test data before each test
- Run in CI with headless browser
- Screenshot on failure for debugging