feat: add comprehensive Playwright testing suite with visual regression

- Add Playwright configuration with multi-browser testing
- Create basic functionality tests for game mechanics
- Add gameplay tests with keyboard and touch interactions
- Implement visual regression testing with screenshots
- Add environment-specific tests for dev/staging/prod
- Include health endpoint and security header validation
- Set up test infrastructure for CI/CD pipeline
This commit is contained in:
greg
2025-06-30 20:51:05 -07:00
parent a24c3c0d05
commit aeccfa3717
6 changed files with 339 additions and 0 deletions

14
tests/package.json Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "playwright-tests",
"version": "1.0.0",
"description": "Playwright tests for 2048 game",
"scripts": {
"test": "playwright test",
"test:headed": "playwright test --headed",
"test:debug": "playwright test --debug",
"test:ui": "playwright test --ui"
},
"devDependencies": {
"@playwright/test": "^1.40.0"
}
}