INNER CODE UNIT · Go
TestMultipleConfirmationsDontInterfere
smtg-ai/claude-squad · app/app_test.go:363
func TestMultipleConfirmationsDontInterfere(t *testing.T) {
h := &home{
ctx: context.Background(),
state: stateDefault,
appConfig: config.DefaultConfig(),
}
// First confirmation
action1Called := false
action1 := func() tea.Msg {
action1Called = true
return nil
}
// Set up first confirmation
h.confirmationOverlay = overlay.NewConfirmationOverlay("First action?")
firstOnConfirm := func() {
h.state = stateDefault