Add Playwright e2e tests for all 8 spec acceptance scenarios
All checks were successful
Deploy / deploy (push) Successful in 1m49s

Implement browser-based e2e tests covering:
- Tests 1-5: Stats progression (cohort, feed, eggs, moves, backdating)
- Test 6: Event viewing and deletion UI
- Test 7: Harvest outcomes with yield items
- Test 8: Optimistic lock selection validation

Includes page objects for reusable form interactions and fresh_db
fixtures for tests requiring isolated database state.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 17:30:26 +00:00
parent feca97a796
commit 51e502ed10
11 changed files with 1670 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# ABOUTME: Page object module exports for Playwright e2e tests.
# ABOUTME: Provides clean imports for all page objects.
from .animals import AnimalsPage
from .eggs import EggsPage
from .feed import FeedPage
from .harvest import HarvestPage
from .move import MovePage
__all__ = [
"AnimalsPage",
"EggsPage",
"FeedPage",
"HarvestPage",
"MovePage",
]