Skip to content

Commit 0a48f30

Browse files
committed
Add test expectation showing a problem with revert
After the revert, the main view shows the diff of the wrong commit.
1 parent cf873b1 commit 0a48f30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/integration/tests/commit/revert.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
3232
Contains("Revert \"first commit\""),
3333
Contains("first commit").IsSelected(),
3434
).
35+
Tap(func() {
36+
/* EXPECTED:
37+
t.Views().Main().Content(Contains("+myfile content"))
38+
ACTUAL: */
39+
t.Views().Main().Content(Contains("-myfile content"))
40+
}).
3541
SelectPreviousItem()
3642

3743
t.Views().Main().Content(Contains("-myfile content"))

0 commit comments

Comments
 (0)