mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Use ErrorToast instead of error panel when invoking a disabled command
This commit is contained in:
@ -24,10 +24,7 @@ var SquashDownFirstCommit = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
NavigateToLine(Contains("commit 01")).
|
||||
Press(keys.Commits.SquashDown).
|
||||
Tap(func() {
|
||||
t.ExpectPopup().Alert().
|
||||
Title(Equals("Error")).
|
||||
Content(Equals("There's no commit below to squash into")).
|
||||
Confirm()
|
||||
t.ExpectToast(Equals("Disabled: There's no commit below to squash into"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("commit 02"),
|
||||
|
Reference in New Issue
Block a user