mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Built tests/playwright/helpers/dragSort.js, which drives jQuery-UI sortable with a realistic stepped mouse gesture (mousedown -> incremental mousemoves past the 7px distance threshold -> mouseup) because Playwright's high-level dragTo() does not trigger jQuery-UI sortable. Validated it reorders normal cards. Added specs/37-card-drag-sort.e2e.js for #3826 (cannot reorder cards in a list whose cards have parents): dragging a sub-task card (with a parentId) to a new position persists the new order, with a few cards and at 15 cards — i.e. the bug does not reproduce on current code; the spec is a regression guard. Scoped to Chromium (reorder logic is browser-independent) so cross-browser drag-timing cannot flake the matrix. The harness also unblocks future drag-sort repros (#5874). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>