mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-06-20 01:19:23 +02:00
Add test expectation showing a problem with revert
After the revert, the main view shows the diff of the wrong commit.
This commit is contained in:
@@ -32,6 +32,12 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Contains("Revert \"first commit\""),
|
||||
Contains("first commit").IsSelected(),
|
||||
).
|
||||
Tap(func() {
|
||||
/* EXPECTED:
|
||||
t.Views().Main().Content(Contains("+myfile content"))
|
||||
ACTUAL: */
|
||||
t.Views().Main().Content(Contains("-myfile content"))
|
||||
}).
|
||||
SelectPreviousItem()
|
||||
|
||||
t.Views().Main().Content(Contains("-myfile content"))
|
||||
|
||||
Reference in New Issue
Block a user