1
0
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:
Stefan Haller
2025-12-23 14:48:08 +01:00
parent cf873b16d9
commit 0a48f307b1
+6
View File
@@ -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"))