1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-23 00:39:13 +02: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

@ -43,23 +43,23 @@ var MenuFromCommandsOutput = NewIntegrationTest(NewIntegrationTestArgs{
},
Run: func(
shell *Shell,
input *Input,
t *TestDriver,
keys config.KeybindingConfig,
) {
input.Model().CurrentBranchName("feature/bar")
input.Model().WorkingTreeFileCount(0)
t.Model().CurrentBranchName("feature/bar")
t.Model().WorkingTreeFileCount(0)
input.Views().Branches().
t.Views().Branches().
Focus().
Press("a")
input.ExpectPrompt().
t.ExpectPrompt().
Title(Equals("Which git command do you want to run?")).
InitialText(Equals("branch")).
Confirm()
input.ExpectMenu().Title(Equals("Branch:")).Select(Equals("master")).Confirm()
t.ExpectMenu().Title(Equals("Branch:")).Select(Equals("master")).Confirm()
input.Model().CurrentBranchName("master")
t.Model().CurrentBranchName("master")
},
})