1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add tap function

This commit is contained in:
Jesse Duffield
2022-12-27 21:25:11 +11:00
parent b166b8f776
commit 53e06b71ae
19 changed files with 210 additions and 230 deletions

View File

@ -26,10 +26,10 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
Equals("On master: foo"),
).
SelectNextItem().
Press(keys.Stash.RenameStash)
input.ExpectPrompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
input.Views().Stash().SelectedLine(Equals("On master: foo baz"))
Press(keys.Stash.RenameStash).
Tap(func() {
input.ExpectPrompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
}).
SelectedLine(Equals("On master: foo baz"))
},
})