mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
add helper functions for popups in tests
This commit is contained in:
@ -19,15 +19,12 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
assert.StashCount(0)
|
||||
assert.WorkingTreeFileCount(1)
|
||||
|
||||
input.PressKeys(keys.Files.ViewStashOptions)
|
||||
assert.InMenu()
|
||||
input.Press(keys.Files.ViewStashOptions)
|
||||
|
||||
input.PressKeys("a")
|
||||
assert.InPrompt()
|
||||
assert.CurrentViewTitle(Equals("Stash changes"))
|
||||
input.Menu(Equals("Stash options"), MatchesRegexp("stash all changes$"))
|
||||
|
||||
input.Prompt(Equals("Stash changes"), "my stashed file")
|
||||
|
||||
input.Type("my stashed file")
|
||||
input.Confirm()
|
||||
assert.StashCount(1)
|
||||
assert.WorkingTreeFileCount(0)
|
||||
},
|
||||
|
Reference in New Issue
Block a user