brackt/app/routes/__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
..
admin.simulators.test.ts Hide completed seasons in admin tools (#418) 2026-05-12 16:52:26 -07:00
admin.sports-seasons.$id.test.ts Remove flaky context menu click tests (#81) 2026-06-10 05:59:49 +00:00
admin.sports-seasons.helpers.test.ts Hide completed seasons in admin tools (#418) 2026-05-12 16:52:26 -07:00
admin.sports.$id.test.ts Add public sports overview page (#451) 2026-05-19 23:02:58 -07:00
admin.sports.new.test.ts Add public sports overview page (#451) 2026-05-19 23:02:58 -07:00
admin.tournaments.$id.test.tsx Canonical tournament layer: 2026-05-01 21:04:48 -07:00
api.upload-sport-icon.test.ts Add Cloudinary sports icon uploads (#393) 2026-05-07 16:07:34 -07:00
api.webhooks.cloudinary.test.ts Add Cloudinary-backed avatar system (#385) 2026-05-06 14:47:37 -07:00
batch-results-helpers.test.ts feat: batch qualifying results entry (#290) 2026-04-12 14:52:22 -07:00
check-email.test.ts Add email verification for email/password signups (#400) 2026-05-09 23:58:45 -07:00
onboarding.test.ts Add user onboarding flow with username selection (#430) 2026-05-15 11:17:15 -07:00
root.onboarding-exempt.test.ts Add admin user management interface with search and username editing (#431) 2026-05-15 12:07:51 -07:00
sports.test.tsx sync racing standings (#80) 2026-06-10 04:25:48 +00:00