mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
rename input to t
This commit is contained in:
@ -55,26 +55,26 @@ var MultiplePrompts = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
},
|
||||
Run: func(
|
||||
shell *Shell,
|
||||
input *Input,
|
||||
t *TestDriver,
|
||||
keys config.KeybindingConfig,
|
||||
) {
|
||||
input.Model().WorkingTreeFileCount(0)
|
||||
t.Model().WorkingTreeFileCount(0)
|
||||
|
||||
input.Views().Files().
|
||||
t.Views().Files().
|
||||
IsFocused().
|
||||
Press("a")
|
||||
|
||||
input.ExpectPrompt().Title(Equals("Enter a file name")).Type("myfile").Confirm()
|
||||
t.ExpectPrompt().Title(Equals("Enter a file name")).Type("myfile").Confirm()
|
||||
|
||||
input.ExpectMenu().Title(Equals("Choose file content")).Select(Contains("bar")).Confirm()
|
||||
t.ExpectMenu().Title(Equals("Choose file content")).Select(Contains("bar")).Confirm()
|
||||
|
||||
input.ExpectConfirmation().
|
||||
t.ExpectConfirmation().
|
||||
Title(Equals("Are you sure?")).
|
||||
Content(Equals("Are you REALLY sure you want to make this file? Up to you buddy.")).
|
||||
Confirm()
|
||||
|
||||
input.Model().WorkingTreeFileCount(1)
|
||||
input.Views().Files().SelectedLine(Contains("myfile"))
|
||||
input.Views().Main().Content(Contains("BAR"))
|
||||
t.Model().WorkingTreeFileCount(1)
|
||||
t.Views().Files().SelectedLine(Contains("myfile"))
|
||||
t.Views().Main().Content(Contains("BAR"))
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user