mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Add some comments to the drag_to_reorder_with_autoscroll test
This commit is contained in:
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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue