mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Add selection assertions to cherry-pick tests
We are about to change the selection behavior when cherry-picking, and it's good to have tests that document in what way it changes in the next commit.
This commit is contained in:
@ -43,7 +43,7 @@ var CherryPickConflicts = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
t.Views().Commits().
|
||||
Focus().
|
||||
TopLines(
|
||||
Contains("first change"),
|
||||
Contains("first change").IsSelected(),
|
||||
).
|
||||
Press(keys.Commits.PasteCommits)
|
||||
|
||||
@ -76,7 +76,7 @@ var CherryPickConflicts = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
t.Views().Commits().
|
||||
Focus().
|
||||
TopLines(
|
||||
Contains("second-change-branch unrelated change"),
|
||||
Contains("second-change-branch unrelated change").IsSelected(),
|
||||
Contains("second change"),
|
||||
Contains("first change"),
|
||||
).
|
||||
|
Reference in New Issue
Block a user