mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-04 03:48:07 +02:00
Fix flakey test
Whenever we perform an action in a test, we should assert on the result before doing the next action. This prevents issues where the test moves too fast for our code. It would be nice to not have to do this, but for now that's the situation
This commit is contained in:
parent
1932c2366b
commit
a9ae5063c2
@ -28,6 +28,12 @@ var Patch = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("commit (initial): one"),
|
||||
).
|
||||
SelectNextItem().
|
||||
Lines(
|
||||
Contains("reset: moving to HEAD^^"),
|
||||
Contains("commit: three").IsSelected(),
|
||||
Contains("commit: two"),
|
||||
Contains("commit (initial): one"),
|
||||
).
|
||||
PressEnter()
|
||||
|
||||
t.Views().SubCommits().
|
||||
|
Loading…
Reference in New Issue
Block a user