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

@ -20,21 +20,21 @@ var Delete = NewIntegrationTest(NewIntegrationTestArgs{
input.SwitchToBranchesWindow()
assert.CurrentViewName("localBranches")
assert.MatchSelectedLine(Contains("branch-two"))
assert.SelectedLine(Contains("branch-two"))
input.PressKeys(keys.Universal.Remove)
assert.InAlert()
assert.MatchCurrentViewContent(Contains("You cannot delete the checked out branch!"))
assert.CurrentViewContent(Contains("You cannot delete the checked out branch!"))
input.Confirm()
input.NextItem()
assert.MatchSelectedLine(Contains("branch-one"))
assert.SelectedLine(Contains("branch-one"))
input.PressKeys(keys.Universal.Remove)
assert.InConfirm()
assert.MatchCurrentViewContent(Contains("Are you sure you want to delete the branch 'branch-one'?"))
assert.CurrentViewContent(Contains("Are you sure you want to delete the branch 'branch-one'?"))
input.Confirm()
assert.CurrentViewName("localBranches")
assert.MatchSelectedLine(Contains("master"))
assert.MatchCurrentViewContent(NotContains("branch-one"))
assert.SelectedLine(Contains("master"))
assert.CurrentViewContent(NotContains("branch-one"))
},
})