1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

refactor to not have Match at the start of assert method names, because it reads better that way

This commit is contained in:
Jesse Duffield
2022-12-24 17:01:26 +11:00
parent c19f52255c
commit aedfce2845
36 changed files with 208 additions and 208 deletions

View File

@ -22,35 +22,35 @@ var DiffCommits = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToCommitsWindow()
assert.CurrentViewName("commits")
assert.MatchSelectedLine(Contains("third commit"))
assert.SelectedLine(Contains("third commit"))
input.PressKeys(keys.Universal.DiffingMenu)
assert.InMenu()
assert.MatchCurrentViewTitle(Equals("Diffing"))
assert.MatchSelectedLine(Contains("diff"))
assert.CurrentViewTitle(Equals("Diffing"))
assert.SelectedLine(Contains("diff"))
input.Confirm()
assert.NotInPopup()
assert.MatchViewContent("information", Contains("showing output for: git diff"))
assert.ViewContent("information", Contains("showing output for: git diff"))
input.NextItem()
input.NextItem()
assert.MatchSelectedLine(Contains("first commit"))
assert.SelectedLine(Contains("first commit"))
assert.MatchMainViewContent(Contains("-second line\n-third line"))
assert.MainViewContent(Contains("-second line\n-third line"))
input.PressKeys(keys.Universal.DiffingMenu)
assert.InMenu()
input.NavigateToListItemContainingText("reverse diff direction")
input.Confirm()
assert.MatchMainViewContent(Contains("+second line\n+third line"))
assert.MainViewContent(Contains("+second line\n+third line"))
input.Enter()
assert.CurrentViewName("commitFiles")
assert.MatchSelectedLine(Contains("file1"))
assert.MatchMainViewContent(Contains("+second line\n+third line"))
assert.SelectedLine(Contains("file1"))
assert.MainViewContent(Contains("+second line\n+third line"))
},
})