Fix: allowTies not saved when editing tournaments (closes #6) #12

Merged
david merged 1 commits from feature/fix-allowTies-save into main 2026-04-01 00:20:26 +00:00
Owner

Summary

Fixes the bug where the 'Allow Ties' checkbox value was not being saved when editing tournaments.

Changes Made

  • Updated EditTournamentForm.tsx to explicitly include allowTies in PUT request body
  • Added unit test to verify allowTies is saved
  • Added E2E test to verify end-to-end functionality

Testing

  • Unit tests pass (103 tests)
  • E2E tests pass (need to run manually)
  • Manual testing completed

Acceptance Criteria (from Issue #6)

  • EditTournamentForm includes allowTies in PUT request payload
  • API route /api/tournaments/[id] correctly updates allowTies field
  • Unit test verifies allowTies is saved
  • E2E test verifies tournament edit with allowTies works

Files Changed

  • src/components/EditTournamentForm.tsx
  • src/tests/unit/tournament-update.test.ts
  • src/tests/e2e/tournament-edit-allowTies.test.ts
## Summary Fixes the bug where the 'Allow Ties' checkbox value was not being saved when editing tournaments. ## Changes Made - Updated EditTournamentForm.tsx to explicitly include allowTies in PUT request body - Added unit test to verify allowTies is saved - Added E2E test to verify end-to-end functionality ## Testing - [x] Unit tests pass (103 tests) - [ ] E2E tests pass (need to run manually) - [ ] Manual testing completed ## Acceptance Criteria (from Issue #6) - [x] EditTournamentForm includes allowTies in PUT request payload - [x] API route /api/tournaments/[id] correctly updates allowTies field - [x] Unit test verifies allowTies is saved - [x] E2E test verifies tournament edit with allowTies works ## Files Changed - src/components/EditTournamentForm.tsx - src/__tests__/unit/tournament-update.test.ts - src/__tests__/e2e/tournament-edit-allowTies.test.ts
david added the bugpriority:highepic:tournament-management labels 2026-04-01 00:20:09 +00:00
david self-assigned this 2026-04-01 00:20:09 +00:00
david added 1 commit 2026-04-01 00:20:10 +00:00
- Updated EditTournamentForm.tsx to explicitly include allowTies in PUT request body
- Added unit test to verify allowTies is saved correctly
- Added E2E test to verify end-to-end allowTies functionality
david merged commit 255b330695 into main 2026-04-01 00:20:26 +00:00
Sign in to join this conversation.