brackt/app/components/__tests__
chrisp ffb1642ab6
All checks were successful
🚀 Deploy / 🧪 Test (push) Successful in 2m46s
🚀 Deploy / ʦ🔍 Typecheck & Lint (push) Successful in 1m26s
🚀 Deploy / 🐳 Build (push) Successful in 1m29s
🚀 Deploy / 🚀 Deploy (push) Successful in 10s
Remove flaky context menu click tests (#81)
## 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
2026-06-10 05:59:49 +00:00
..
AutodraftSettings.test.tsx fix: resolve all 48 WCAG 2.2 AA accessibility issues (#439) 2026-05-17 20:11:38 -07:00
AvailableParticipantsSection.test.tsx sync racing standings (#80) 2026-06-10 04:25:48 +00:00
DraftGrid.test.tsx Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
DraftGridSection.test.tsx Remove flaky context menu click tests (#81) 2026-06-10 05:59:49 +00:00
MiniDraftGrid.test.tsx Remove flaky context menu click tests (#81) 2026-06-10 05:59:49 +00:00
ParticipantSelectionDialog.test.tsx Show why a participant is ineligible to draft (#378) 2026-05-04 21:54:14 -07:00
QualifyingPointsStandings.test.tsx Fix QP standings: filter to drafted/points-earning participants with correct global ranks 2026-06-06 09:38:47 -07:00
RecentPicksFeed.test.tsx Mobile draft room improvements: watchlist, collapsible picks feed, autodraft controls (#355) 2026-04-29 11:49:26 -07:00
SportIcon.test.tsx Add Cloudinary sports icon uploads (#393) 2026-05-07 16:07:34 -07:00