-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
P3-post-betaLow priority - can wait until after beta (v2.0)Low priority - can wait until after beta (v2.0)bugSomething isn't workingSomething isn't workingtesting
Description
Problem
E2E test seed data creates projects in active phase when tests expect planning phase. This causes 10+ test failures across Firefox, WebKit, Mobile Chrome, and Mobile Safari.
Failing Tests
Late-Joining User Tests:
test_late_joining_user.spec.ts:129- should show "Tasks Ready" section @smoketest_late_joining_user.spec.ts:201- should not show "Generate Tasks" button
State Reconciliation Tests:
test_state_reconciliation.spec.ts:132- should show "Review Tasks" @smoketest_state_reconciliation.spec.ts:657- should maintain correct state after page refresh @smoke
Error
Error: expect(received).toBe(expected) // Object.is equality
Expected: "planning"
Received: "active"
At line:
// Project must be in planning phase with tasks to test late-joining scenario
expect(progressData.phase).toBe('planning');Root Cause
The seed script (scripts/seed-test-data.py) creates projects with tasks, but the phase transitions to active either:
- During seeding when tasks are added
- Due to automatic phase progression logic
- Because the seed explicitly sets
activephase
Location
scripts/seed-test-data.py- Seed data creationcodeframe/persistence/repositories/- Phase transition logic
Expected Behavior
For late-joining user tests, the seeded project should be:
- In
planningphase - Have tasks already generated
- Be awaiting user review/approval (not auto-progressed)
Suggested Fix
Option 1: Update seed script to explicitly set phase after task creation:
# After creating tasks
db.update_project_phase(project_id, "planning")Option 2: Add a flag to prevent auto-phase-progression during seeding:
# Seed tasks without triggering phase change
db.create_tasks(tasks, auto_progress=False)Impact
- 10+ test failures across 4 browsers
- Blocks late-joining user and state reconciliation test suites
Related
- [P3] E2E Tests: Fix mobile browser and Firefox compatibility issues #230 - E2E Tests: Fix mobile browser and Firefox compatibility issues
- [P1] Discovery enters stuck state on new project creation - no current question #255 - Discovery enters stuck state (different issue but related to project state)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3-post-betaLow priority - can wait until after beta (v2.0)Low priority - can wait until after beta (v2.0)bugSomething isn't workingSomething isn't workingtesting