mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
move popup assertions into a struct
This commit is contained in:
@ -48,12 +48,12 @@ var MenuFromCommandsOutput = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Focus().
|
||||
Press("a")
|
||||
|
||||
t.ExpectPrompt().
|
||||
t.ExpectPopup().Prompt().
|
||||
Title(Equals("Which git command do you want to run?")).
|
||||
InitialText(Equals("branch")).
|
||||
Confirm()
|
||||
|
||||
t.ExpectMenu().Title(Equals("Branch:")).Select(Equals("master")).Confirm()
|
||||
t.ExpectPopup().Menu().Title(Equals("Branch:")).Select(Equals("master")).Confirm()
|
||||
|
||||
t.Git().CurrentBranchName("master")
|
||||
},
|
||||
|
Reference in New Issue
Block a user