mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Tighten a test expectation
This guards against regressions from the changes that follow. We're about to add a mechanism that keeps the selection anchored by commit hash, but we need to make sure that it doesn't take effect here; after a merge we want to select the newly added merge commit. In the current state of the code this happens to work because we keep the selection index the same, which happened to be 0 here; later we will change this to explicitly select the head commit after the merge.
This commit is contained in:
parent
0b78438848
commit
02be5e74ed
|
|
@ -29,7 +29,7 @@ var PullMerge = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Views().Commits().
|
||||
Lines(
|
||||
Contains("four"),
|
||||
Contains("four").IsSelected(),
|
||||
Contains("one"),
|
||||
)
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ var PullMerge = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
|
||||
t.Views().Commits().
|
||||
Lines(
|
||||
Contains("Merge branch 'master' of ../origin"),
|
||||
Contains("Merge branch 'master' of ../origin").IsSelected(),
|
||||
Contains("three"),
|
||||
Contains("two"),
|
||||
Contains("four"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue