},
{name: "send failure stores a safe cause"},
}
+
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
whatsapp, fake := whatsappStartTestLinked(t)
bot: bot,
},
}
+
require.NotContains(t, box.run(t.Context(), "image_show", `{"image":"`+names[0]+`","caption":"The plan."}`), "error:")
require.Contains(t, box.run(t.Context(), "whatsapp_send", `{"id":"forward","chat":"15550002222@s.whatsapp.net","text":"The plan.","image":"`+names[0]+`"}`), "Sent to")
require.Equal(t, [][]byte{picture}, fake.Uploads())