mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Add section headers for rebase todos, cherry-picks, reverts, and actual commits
This commit is contained in:
@ -34,50 +34,60 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
NavigateToLine(Contains("first commit to edit")).
|
||||
Press(keys.Universal.Edit).
|
||||
Lines(
|
||||
Contains("--- Pending rebase todos ---"),
|
||||
MatchesRegexp("pick.*commit to fixup"),
|
||||
MatchesRegexp("pick.*commit to drop"),
|
||||
MatchesRegexp("pick.*second commit to edit"),
|
||||
MatchesRegexp("pick.*commit to squash"),
|
||||
Contains("--- Commits ---"),
|
||||
MatchesRegexp("YOU ARE HERE.*first commit to edit").IsSelected(),
|
||||
Contains("initial commit"),
|
||||
).
|
||||
SelectPreviousItem().
|
||||
Press(keys.Commits.SquashDown).
|
||||
Lines(
|
||||
Contains("--- Pending rebase todos ---"),
|
||||
MatchesRegexp("pick.*commit to fixup"),
|
||||
MatchesRegexp("pick.*commit to drop"),
|
||||
MatchesRegexp("pick.*second commit to edit"),
|
||||
MatchesRegexp("squash.*commit to squash").IsSelected(),
|
||||
Contains("--- Commits ---"),
|
||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
||||
Contains("initial commit"),
|
||||
).
|
||||
SelectPreviousItem().
|
||||
Press(keys.Universal.Edit).
|
||||
Lines(
|
||||
Contains("--- Pending rebase todos ---"),
|
||||
MatchesRegexp("pick.*commit to fixup"),
|
||||
MatchesRegexp("pick.*commit to drop"),
|
||||
MatchesRegexp("edit.*second commit to edit").IsSelected(),
|
||||
MatchesRegexp("squash.*commit to squash"),
|
||||
Contains("--- Commits ---"),
|
||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
||||
Contains("initial commit"),
|
||||
).
|
||||
SelectPreviousItem().
|
||||
Press(keys.Universal.Remove).
|
||||
Lines(
|
||||
Contains("--- Pending rebase todos ---"),
|
||||
MatchesRegexp("pick.*commit to fixup"),
|
||||
MatchesRegexp("drop.*commit to drop").IsSelected(),
|
||||
MatchesRegexp("edit.*second commit to edit"),
|
||||
MatchesRegexp("squash.*commit to squash"),
|
||||
Contains("--- Commits ---"),
|
||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
||||
Contains("initial commit"),
|
||||
).
|
||||
SelectPreviousItem().
|
||||
Press(keys.Commits.MarkCommitAsFixup).
|
||||
Lines(
|
||||
Contains("--- Pending rebase todos ---"),
|
||||
MatchesRegexp("fixup.*commit to fixup").IsSelected(),
|
||||
MatchesRegexp("drop.*commit to drop"),
|
||||
MatchesRegexp("edit.*second commit to edit"),
|
||||
MatchesRegexp("squash.*commit to squash"),
|
||||
Contains("--- Commits ---"),
|
||||
MatchesRegexp("YOU ARE HERE.*first commit to edit"),
|
||||
Contains("initial commit"),
|
||||
).
|
||||
@ -85,8 +95,10 @@ var Rebase = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
t.Common().ContinueRebase()
|
||||
}).
|
||||
Lines(
|
||||
Contains("--- Pending rebase todos ---"),
|
||||
MatchesRegexp("fixup.*commit to fixup").IsSelected(),
|
||||
MatchesRegexp("drop.*commit to drop"),
|
||||
Contains("--- Commits ---"),
|
||||
MatchesRegexp("YOU ARE HERE.*second commit to edit"),
|
||||
MatchesRegexp("first commit to edit"),
|
||||
Contains("initial commit"),
|
||||
|
Reference in New Issue
Block a user