From c09b682f635d2fd8effd7aae8873649746ffbd44 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 26 Aug 2026 19:01:36 +0200 Subject: [PATCH] Add some comments to the drag_to_reorder_with_autoscroll test --- .../interactive_rebase/drag_to_reorder_with_autoscroll.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/integration/tests/interactive_rebase/drag_to_reorder_with_autoscroll.go b/pkg/integration/tests/interactive_rebase/drag_to_reorder_with_autoscroll.go index d8086e0a3..5f8101b05 100644 --- a/pkg/integration/tests/interactive_rebase/drag_to_reorder_with_autoscroll.go +++ b/pkg/integration/tests/interactive_rebase/drag_to_reorder_with_autoscroll.go @@ -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(),