## Summary
- Deletes 12 `it("calls onX with correct args")` test blocks from `MiniDraftGrid.test.tsx` and `DraftGridSection.test.tsx`
- Removes now-unused `import userEvent` from both files
## Why
`userEvent.setup().click()` hangs indefinitely on Radix UI `ContextMenu` items in jsdom — pointer-event and animation checks stall waiting for CSS transitions that never fire `transitionend` in the test environment. This caused a flaky 5 s timeout in CI.
The deleted tests were verifying that clicking a `ContextMenuItem` fires its `onClick` — React/Radix wiring, not app logic. The remaining presence/absence tests already cover the conditional rendering (which items appear under which conditions), which is where the actual app logic lives.
## Test plan
- [ ] `npm run test:run -- MiniDraftGrid DraftGridSection` — all remaining tests pass, no timeouts
Co-authored-by: Chris Parsons <chrisparsons1127@gmail.com>
Reviewed-on: #81
|
||
|---|---|---|
| .. | ||
| admin.simulators.test.ts | ||
| admin.sports-seasons.$id.test.ts | ||
| admin.sports-seasons.helpers.test.ts | ||
| admin.sports.$id.test.ts | ||
| admin.sports.new.test.ts | ||
| admin.tournaments.$id.test.tsx | ||
| api.upload-sport-icon.test.ts | ||
| api.webhooks.cloudinary.test.ts | ||
| batch-results-helpers.test.ts | ||
| check-email.test.ts | ||
| onboarding.test.ts | ||
| root.onboarding-exempt.test.ts | ||
| sports.test.tsx | ||