mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-27 18:14:48 -05:00
Add some comments to the drag_to_reorder_with_autoscroll test
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user