mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-03 00:57:52 +02:00
add tap function
This commit is contained in:
@ -23,14 +23,13 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Lines(
|
||||
Contains("first commit"),
|
||||
).
|
||||
Press(keys.Commits.RevertCommit)
|
||||
|
||||
input.ExpectConfirmation().
|
||||
Title(Equals("Revert commit")).
|
||||
Content(MatchesRegexp(`Are you sure you want to revert \w+?`)).
|
||||
Confirm()
|
||||
|
||||
input.Views().Commits().IsFocused().
|
||||
Press(keys.Commits.RevertCommit).
|
||||
Tap(func() {
|
||||
input.ExpectConfirmation().
|
||||
Title(Equals("Revert commit")).
|
||||
Content(MatchesRegexp(`Are you sure you want to revert \w+?`)).
|
||||
Confirm()
|
||||
}).
|
||||
Lines(
|
||||
Contains("Revert \"first commit\"").IsSelected(),
|
||||
Contains("first commit"),
|
||||
|
Reference in New Issue
Block a user