mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Remove the "YOU ARE HERE" marker
Now that we have sections, it is no longer needed. Keep the "<-- CONFLICTS" marker though.
This commit is contained in:
@ -30,7 +30,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 03"),
|
||||
Contains("commit 02"),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01").IsSelected(),
|
||||
Contains("commit 01").IsSelected(),
|
||||
).
|
||||
SelectPreviousItem().
|
||||
Press(keys.Commits.MoveUpCommit).
|
||||
@ -40,7 +40,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 02").IsSelected(),
|
||||
Contains("commit 03"),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
Press(keys.Commits.MoveUpCommit).
|
||||
Lines(
|
||||
@ -49,7 +49,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 04"),
|
||||
Contains("commit 03"),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
// assert we can't move past the top
|
||||
Press(keys.Commits.MoveUpCommit).
|
||||
@ -62,7 +62,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 04"),
|
||||
Contains("commit 03"),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
Press(keys.Commits.MoveDownCommit).
|
||||
Lines(
|
||||
@ -71,7 +71,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 02").IsSelected(),
|
||||
Contains("commit 03"),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
Press(keys.Commits.MoveDownCommit).
|
||||
Lines(
|
||||
@ -80,7 +80,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 03"),
|
||||
Contains("commit 02").IsSelected(),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
// assert we can't move past the bottom
|
||||
Press(keys.Commits.MoveDownCommit).
|
||||
@ -93,7 +93,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 03"),
|
||||
Contains("commit 02").IsSelected(),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
// move it back up one so that we land in a different order than we started with
|
||||
Press(keys.Commits.MoveUpCommit).
|
||||
@ -103,7 +103,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 02").IsSelected(),
|
||||
Contains("commit 03"),
|
||||
Contains("--- Commits ---"),
|
||||
Contains("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
).
|
||||
Tap(func() {
|
||||
t.Common().ContinueRebase()
|
||||
@ -112,7 +112,7 @@ var MoveInRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit 04"),
|
||||
Contains("commit 02").IsSelected(),
|
||||
Contains("commit 03"),
|
||||
DoesNotContain("YOU ARE HERE").Contains("commit 01"),
|
||||
Contains("commit 01"),
|
||||
)
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user