Skip to content

Commit 030c2e5

Browse files
committed
Fix postFilterTest to actually do what it says
I'm pretty sure that the check for the main view was meant to be done with the commit selected in the commits panel, not with the first file of the commit files view selected, so it was pressing enter too early. It's pure coincidence that the test worked.
1 parent e8d3a7a commit 030c2e5

File tree

1 file changed

+4
-2
lines changed
  • pkg/integration/tests/filter_by_path

1 file changed

+4
-2
lines changed

pkg/integration/tests/filter_by_path/shared.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ func postFilterTest(t *TestDriver) {
2727
Contains(`only filterFile`).IsSelected(),
2828
Contains(`both files`),
2929
).
30-
SelectNextItem().
31-
PressEnter()
30+
SelectNextItem()
3231

3332
// we only show the filtered file's changes in the main view
3433
t.Views().Main().
3534
Content(Contains("filterFile").DoesNotContain("otherFile"))
3635

36+
t.Views().Commits().
37+
PressEnter()
38+
3739
// when you click into the commit itself, you see all files from that commit
3840
t.Views().CommitFiles().
3941
IsFocused().

0 commit comments

Comments
 (0)