mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
combine assert and input structs, clean up interface
This commit is contained in:
@ -13,11 +13,14 @@ var ConfirmOnQuit = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
config.UserConfig.ConfirmOnQuit = true
|
||||
},
|
||||
SetupRepo: func(shell *Shell) {},
|
||||
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
|
||||
assert.Model().CommitCount(0)
|
||||
Run: func(shell *Shell, input *Input, keys config.KeybindingConfig) {
|
||||
input.Model().CommitCount(0)
|
||||
|
||||
input.Press(keys.Universal.Quit)
|
||||
input.Confirmation().
|
||||
input.Views().Files().
|
||||
IsFocused().
|
||||
Press(keys.Universal.Quit)
|
||||
|
||||
input.ExpectConfirmation().
|
||||
Title(Equals("")).
|
||||
Content(Contains("Are you sure you want to quit?")).
|
||||
Confirm()
|
||||
|
Reference in New Issue
Block a user