1
0
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:
Jesse Duffield
2022-12-27 21:35:36 +11:00
parent 53e06b71ae
commit 78b495f50a
45 changed files with 376 additions and 399 deletions

View File

@ -15,18 +15,18 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
shell.CreateFile("file", "content")
shell.GitAddAll()
},
Run: func(shell *Shell, input *Input, keys config.KeybindingConfig) {
input.Model().StashCount(0)
input.Model().WorkingTreeFileCount(1)
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
t.Model().StashCount(0)
t.Model().WorkingTreeFileCount(1)
input.Views().Files().
t.Views().Files().
Press(keys.Files.ViewStashOptions)
input.ExpectMenu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm()
t.ExpectMenu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm()
input.ExpectPrompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
t.ExpectPrompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
input.Model().StashCount(1)
input.Model().WorkingTreeFileCount(0)
t.Model().StashCount(1)
t.Model().WorkingTreeFileCount(0)
},
})