mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
move popup assertions into a struct
This commit is contained in:
@ -28,7 +28,7 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
SelectNextItem().
|
||||
Press(keys.Stash.RenameStash).
|
||||
Tap(func() {
|
||||
t.ExpectPrompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
|
||||
t.ExpectPopup().Prompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
|
||||
}).
|
||||
SelectedLine(Equals("On master: foo baz"))
|
||||
},
|
||||
|
@ -25,9 +25,9 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press(keys.Files.ViewStashOptions)
|
||||
|
||||
t.ExpectMenu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm()
|
||||
t.ExpectPopup().Menu().Title(Equals("Stash options")).Select(MatchesRegexp("stash all changes$")).Confirm()
|
||||
|
||||
t.ExpectPrompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
|
||||
t.ExpectPopup().Prompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
|
||||
|
||||
t.Views().Stash().
|
||||
Lines(
|
||||
|
@ -27,9 +27,9 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press(keys.Files.ViewStashOptions)
|
||||
|
||||
t.ExpectMenu().Title(Equals("Stash options")).Select(Contains("stash all changes including untracked files")).Confirm()
|
||||
t.ExpectPopup().Menu().Title(Equals("Stash options")).Select(Contains("stash all changes including untracked files")).Confirm()
|
||||
|
||||
t.ExpectPrompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
|
||||
t.ExpectPopup().Prompt().Title(Equals("Stash changes")).Type("my stashed file").Confirm()
|
||||
|
||||
t.Views().Stash().
|
||||
Lines(
|
||||
|
Reference in New Issue
Block a user