Dragging a pane down: reaching any part of a pane below is enough

The drop place was decided by the midpoint of the pane under the pointer, so
a pane dragged down onto the top of the one below went nowhere.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Fable 5.2 committed 2026-11-16 15:48:58 -05:00
1 parent 7bddb03d0d
commit ec19a23051
2 files changed
+14 -3

No files matched your search

+3
View File
@@ -510,6 +510,9 @@ test("a pane is dragged by its grip, or its tab, up or down its column; the orde
await page.reload();
await page.waitForSelector(".strip .pane");
expect((await columns(page))[1]).toEqual([kids[4], ...kids.slice(0, 4)]);
// Downward, reaching the top of a pane below is enough: the dragged pane lands after it.
await drag(kids[4], kids[1]);
expect((await columns(page))[1]).toEqual([kids[0], kids[1], kids[4], kids[2], kids[3]]);
// And by its tab, in a crowded column.
await page.setViewportSize({ width: 1920, height: 1080 });
await expect.poll(() => page.locator(".strip > .col").nth(1).getAttribute("class")).toContain("crowded");