mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-06 10:42:32 +03:00
move popup assertions into a struct
This commit is contained in:
@ -59,11 +59,11 @@ var MultiplePrompts = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
IsFocused().
|
||||
Press("a")
|
||||
|
||||
t.ExpectPrompt().Title(Equals("Enter a file name")).Type("myfile").Confirm()
|
||||
t.ExpectPopup().Prompt().Title(Equals("Enter a file name")).Type("myfile").Confirm()
|
||||
|
||||
t.ExpectMenu().Title(Equals("Choose file content")).Select(Contains("bar")).Confirm()
|
||||
t.ExpectPopup().Menu().Title(Equals("Choose file content")).Select(Contains("bar")).Confirm()
|
||||
|
||||
t.ExpectConfirmation().
|
||||
t.ExpectPopup().Confirmation().
|
||||
Title(Equals("Are you sure?")).
|
||||
Content(Equals("Are you REALLY sure you want to make this file? Up to you buddy.")).
|
||||
Confirm()
|
||||
|
Reference in New Issue
Block a user