Remove flaky context menu click tests #81
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/remove-flaky-context-menu-tests"
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?
Summary
it("calls onX with correct args")test blocks fromMiniDraftGrid.test.tsxandDraftGridSection.test.tsximport userEventfrom both filesWhy
userEvent.setup().click()hangs indefinitely on Radix UIContextMenuitems in jsdom — pointer-event and animation checks stall waiting for CSS transitions that never firetransitionendin the test environment. This caused a flaky 5 s timeout in CI.The deleted tests were verifying that clicking a
ContextMenuItemfires itsonClick— 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