Seed explicit empty partial and complete captures for UI review
This commit is contained in:
@@ -51,6 +51,16 @@ func TestExportReadyAttentionReviewFixture(t *testing.T) {
|
||||
if status == "failed" {
|
||||
outcome = "error"
|
||||
}
|
||||
capture := &protocol.StageFileChanges{Status: "complete", Files: []protocol.FileChange{}}
|
||||
if status == "failed" {
|
||||
capture.Status, capture.Skipped, capture.Diagnostic = "partial", 2, "Controlled partial fixture: files skipped."
|
||||
}
|
||||
if err := store.BeginStep(ctx, id, 1, "gate", map[string]any{"prompt": "Controlled fixture step"}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := store.FinishStep(ctx, id, protocol.RunStep{Sequence: 1, Stage: "gate", Status: "completed", Outcome: outcome, FileChanges: capture}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := store.FinishRun(ctx, id, status, outcome, "Controlled fixture", nil); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user