Issue #7 follow-up: Schedule generation timing tests need investigation #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The core functionality for the tournament schedule feature is complete and merged. However, some acceptance tests remain @wip due to timing issues in the test harness, not the implementation.
Remaining Work
1. Schedule Generation Tests (timing issue)
Scenarios remaining @wip:
Tournament admin generates round-robin schedule- fails after refreshTournament admin views schedule with bye rounds- same timing issueTournament admin clicks on a matchup to enter results- matchup not foundRoot Cause:
The tests use
networkidlereload which triggers Next.js dev server HMR instead of fresh data fetch. In production builds,router.refresh()+revalidatePath()should resolve this.Potential Fixes:
waitForTimeout(2000))page.goto()with hard reload instead ofnetworkidlenpm run build && npm start2. Bye Round Display Verification
The
each team should play every other team exactly oncestep definition is a placeholder that just checks for schedule existence, not actual round-robin correctness.Acceptance Criteria