mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-21 22:43:27 +02:00
Add author short names to commits in test
This allow us to check not only whether a given commit has the branch head marker, but also that other commits _don't_ have it, which is important.
This commit is contained in:
parent
cb240081a8
commit
eb6f089a2a
@ -25,26 +25,26 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
t.Views().Commits().
|
t.Views().Commits().
|
||||||
Focus().
|
Focus().
|
||||||
Lines(
|
Lines(
|
||||||
Contains("commit 07").IsSelected(),
|
Contains("CI commit 07").IsSelected(),
|
||||||
Contains("commit 06"),
|
Contains("CI commit 06"),
|
||||||
Contains("commit 05"),
|
Contains("CI commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("CI commit 04"),
|
||||||
Contains("commit 03"),
|
Contains("CI commit 03"),
|
||||||
Contains("commit 02"),
|
Contains("CI commit 02"),
|
||||||
Contains("commit 01"),
|
Contains("CI commit 01"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("commit 02")).
|
NavigateToLine(Contains("commit 02")).
|
||||||
Press(keys.Universal.Edit).
|
Press(keys.Universal.Edit).
|
||||||
Focus().
|
Focus().
|
||||||
Lines(
|
Lines(
|
||||||
Contains("pick").Contains("commit 07"),
|
Contains("pick").Contains("CI commit 07"),
|
||||||
Contains("pick").Contains("commit 06"),
|
Contains("pick").Contains("CI commit 06"),
|
||||||
Contains("pick").Contains("commit 05"),
|
Contains("pick").Contains("CI commit 05"),
|
||||||
Contains("update-ref").Contains("branch1"),
|
Contains("update-ref").Contains("branch1"),
|
||||||
Contains("pick").Contains("commit 04"),
|
Contains("pick").Contains("CI commit 04"),
|
||||||
Contains("pick").Contains("commit 03"),
|
Contains("pick").Contains("CI commit 03"),
|
||||||
Contains("<-- YOU ARE HERE --- commit 02"),
|
Contains("<-- YOU ARE HERE --- commit 02"),
|
||||||
Contains("commit 01"),
|
Contains("CI commit 01"),
|
||||||
).
|
).
|
||||||
NavigateToLine(Contains("commit 06")).
|
NavigateToLine(Contains("commit 06")).
|
||||||
Press(keys.Universal.Remove)
|
Press(keys.Universal.Remove)
|
||||||
@ -54,12 +54,12 @@ var DropTodoCommitWithUpdateRef = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
t.Views().Commits().
|
t.Views().Commits().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
Lines(
|
Lines(
|
||||||
Contains("commit 07"),
|
Contains("CI commit 07"),
|
||||||
Contains("commit 05"),
|
Contains("CI commit 05"),
|
||||||
Contains("commit 04"),
|
Contains("CI commit 04"),
|
||||||
Contains("commit 03"),
|
Contains("CI commit 03"),
|
||||||
Contains("commit 02"),
|
Contains("CI commit 02"),
|
||||||
Contains("commit 01"),
|
Contains("CI commit 01"),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user