mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Make it possible to handle toasts in integration tests
Use it in two selected tests to demonstrate what it looks like.
This commit is contained in:
@ -78,6 +78,10 @@ func (self *fakeGuiDriver) SetCaption(string) {
|
||||
func (self *fakeGuiDriver) SetCaptionPrefix(string) {
|
||||
}
|
||||
|
||||
func (self *fakeGuiDriver) NextToast() *string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func TestManualFailure(t *testing.T) {
|
||||
test := NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: unitTestDescription,
|
||||
|
Reference in New Issue
Block a user