Add some comments to the drag_to_reorder_with_autoscroll test

This commit is contained in:
Stefan Haller
2026-08-27 08:22:55 +02:00
parent 6a932f3057
commit c09b682f63
@@ -19,14 +19,18 @@ var DragToReorderWithAutoscroll = NewIntegrationTest(NewIntegrationTestArgs{
TopLines(
Contains("commit-40").IsSelected(),
).
// Click and hold the first commit
ClickAndHold(1, 0).
// Move the mouse to the bottom of the panel to trigger autoscroll
MouseMoveToBottom(1).
// Verify that the view scrolls
OriginYAtLeast(3).
MouseRelease().
SelectedLines(
Contains("commit-40"),
).
SelectedLineIdxAtLeast(3).
// Scroll back to verify that the original commit is no longer at the top
GotoTop().
TopLines(
Contains("commit-39").IsSelected(),