(t *testing.T)
| 166 | } |
| 167 | |
| 168 | func TestCompletionScreen_PushSuccess(t *testing.T) { |
| 169 | cs := NewCompletionScreen() |
| 170 | cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil) |
| 171 | cs.SetPushSuccess() |
| 172 | cs.SetSize(80, 40) |
| 173 | |
| 174 | rendered := cs.Render() |
| 175 | if !strings.Contains(rendered, "Pushed branch to remote") { |
| 176 | t.Error("expected 'Pushed branch to remote' when push succeeded") |
| 177 | } |
| 178 | // Should not show the "configure" hint when auto-actions are active |
| 179 | if strings.Contains(rendered, "Configure auto-push") { |
| 180 | t.Error("expected no auto-push hint when push is active") |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | func TestCompletionScreen_PushError(t *testing.T) { |
| 185 | cs := NewCompletionScreen() |
nothing calls this directly
no test coverage detected