mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
refactor to not have Match at the start of assert method names, because it reads better that way
This commit is contained in:
@ -22,16 +22,16 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
input.SwitchToStashWindow()
|
||||
assert.CurrentViewName("stash")
|
||||
|
||||
assert.MatchSelectedLine(Equals("On master: bar"))
|
||||
assert.SelectedLine(Equals("On master: bar"))
|
||||
input.NextItem()
|
||||
assert.MatchSelectedLine(Equals("On master: foo"))
|
||||
assert.SelectedLine(Equals("On master: foo"))
|
||||
input.PressKeys(keys.Stash.RenameStash)
|
||||
assert.InPrompt()
|
||||
assert.MatchCurrentViewTitle(Equals("Rename stash: stash@{1}"))
|
||||
assert.CurrentViewTitle(Equals("Rename stash: stash@{1}"))
|
||||
|
||||
input.Type(" baz")
|
||||
input.Confirm()
|
||||
|
||||
assert.MatchSelectedLine(Equals("On master: foo baz"))
|
||||
assert.SelectedLine(Equals("On master: foo baz"))
|
||||
},
|
||||
})
|
||||
|
@ -24,7 +24,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
input.PressKeys("a")
|
||||
assert.InPrompt()
|
||||
assert.MatchCurrentViewTitle(Equals("Stash changes"))
|
||||
assert.CurrentViewTitle(Equals("Stash changes"))
|
||||
|
||||
input.Type("my stashed file")
|
||||
input.Confirm()
|
||||
|
@ -25,7 +25,7 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
input.PressKeys("U")
|
||||
assert.InPrompt()
|
||||
assert.MatchCurrentViewTitle(Equals("Stash changes"))
|
||||
assert.CurrentViewTitle(Equals("Stash changes"))
|
||||
|
||||
input.Type("my stashed file")
|
||||
input.Confirm()
|
||||
|
Reference in New Issue
Block a user