test(engine): regression tests for waste-card draggability #105

Merged
funman300 merged 1 commits from test/waste-draggable-regression into master 2026-06-25 16:58:15 +00:00
Owner

Adds two find_draggable_at tests pinning the correct stock/waste drag behaviour reported by Rhys:

  • find_draggable_picks_waste_top_with_multiple_cards — clicking the visible top of a multi-card waste picks the top index, not the buffer card beneath it.
  • find_draggable_picks_lone_waste_card — a waste of one card is still draggable ("can't play the first card in the stock").

Both pass against current logic, so they guard the engine path while the remaining bug is hunted at the web-input/coordinate layer.

🤖 Generated with Claude Code

Adds two `find_draggable_at` tests pinning the correct stock/waste drag behaviour reported by Rhys: - `find_draggable_picks_waste_top_with_multiple_cards` — clicking the visible top of a multi-card waste picks the top index, not the buffer card beneath it. - `find_draggable_picks_lone_waste_card` — a waste of one card is still draggable ("can't play the first card in the stock"). Both pass against current logic, so they guard the engine path while the remaining bug is hunted at the web-input/coordinate layer. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
funman300 added 1 commit 2026-06-25 16:57:13 +00:00
Adds two find_draggable_at tests covering the reported stock/waste
drag bug: clicking the visible top of a multi-card waste must pick the
top index (not the buffer card beneath), and a lone waste card must
still be draggable. Both pass against current logic, pinning the
correct behaviour.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
funman300 merged commit fde863a4e4 into master 2026-06-25 16:58:15 +00:00
funman300 deleted branch test/waste-draggable-regression 2026-06-25 16:58:16 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: funman300/Ferrous-Solitaire#105