(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestCompletionScreen_PRInProgress(t *testing.T) { |
| 200 | cs := NewCompletionScreen() |
| 201 | cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil) |
| 202 | cs.SetPushSuccess() |
| 203 | cs.SetPRInProgress() |
| 204 | cs.SetSize(80, 40) |
| 205 | |
| 206 | rendered := cs.Render() |
| 207 | if !strings.Contains(rendered, "Creating pull request") { |
| 208 | t.Error("expected 'Creating pull request' when PR is in progress") |
| 209 | } |
| 210 | if !cs.IsAutoActionRunning() { |
| 211 | t.Error("expected IsAutoActionRunning() to be true when PR is in progress") |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | func TestCompletionScreen_PRSuccess(t *testing.T) { |
| 216 | cs := NewCompletionScreen() |
nothing calls this directly
no test coverage detected