1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

add helper functions for popups in tests

This commit is contained in:
Jesse Duffield
2022-12-24 17:48:57 +11:00
parent aedfce2845
commit b623ecf898
40 changed files with 380 additions and 402 deletions

View File

@ -51,19 +51,11 @@ var MenuFromCommand = NewIntegrationTest(NewIntegrationTestArgs{
assert.WorkingTreeFileCount(0)
input.SwitchToBranchesWindow()
input.PressKeys("a")
input.Press("a")
assert.InMenu()
assert.CurrentViewTitle(Equals("Choose commit message"))
assert.SelectedLine(Equals("baz"))
input.NextItem()
assert.SelectedLine(Equals("bar"))
input.Confirm()
input.Menu(Equals("Choose commit message"), Contains("bar"))
assert.InPrompt()
assert.CurrentViewTitle(Equals("Description"))
input.Type(" my branch")
input.Confirm()
input.Prompt(Equals("Description"), " my branch")
input.SwitchToFilesWindow()