Animation fixes: - Fix held card positioning bug (was appearing at bottom of page) - Fix discard pile blank/white flash on turn transitions - Fix blank card at round end by skipping animations during round_over/game_over - Set card content before triggering flip animation to prevent flash - Center suit symbol on 10 cards Timing improvements: - Reduce post-discard delay from 700ms to 500ms - Reduce post-swap delay from 1800ms to 1000ms - Speed up swap flip animation from 1150ms to 550ms - Reduce CPU initial thinking delay from 150-250ms to 80-150ms - Pause now happens after swap completes (showing result) instead of before E2E test suite: - Add Playwright-based test bot that plays full games - State parser extracts game state from DOM for validation - AI brain ports decision logic for automated play - Freeze detector monitors for UI hangs - Visual validator checks CSS states - Full game, stress, and visual test specs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
713 B
JSON
23 lines
713 B
JSON
{
|
|
"name": "golf-e2e-tests",
|
|
"version": "1.0.0",
|
|
"description": "End-to-end tests for Golf Card Game",
|
|
"private": true,
|
|
"scripts": {
|
|
"test": "playwright test",
|
|
"test:headed": "playwright test --headed",
|
|
"test:debug": "playwright test --debug",
|
|
"test:ui": "playwright test --ui",
|
|
"test:full-game": "playwright test specs/full-game.spec.ts",
|
|
"test:visual": "playwright test specs/visual.spec.ts",
|
|
"test:stress": "playwright test specs/stress.spec.ts",
|
|
"test:report": "playwright show-report",
|
|
"install:browsers": "playwright install chromium"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.40.0",
|
|
"@types/node": "^20.10.0",
|
|
"typescript": "^5.3.0"
|
|
}
|
|
}
|