|
|
|
@@ -21,7 +21,7 @@ func TestUIUXReviewSnapshots(t *testing.T) {
|
|
|
|
|
if err := os.MkdirAll(directory, 0700); err != nil {
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
}
|
|
|
|
|
source, err := os.ReadFile("../../examples/human-decision.md")
|
|
|
|
|
source, err := os.ReadFile("../../examples/task.md")
|
|
|
|
|
if err != nil {
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
}
|
|
|
|
@@ -36,7 +36,7 @@ func TestUIUXReviewSnapshots(t *testing.T) {
|
|
|
|
|
m.loaded = true
|
|
|
|
|
m.status = "127.0.0.1:8080"
|
|
|
|
|
m.notificationEndpoints = []protocol.NotificationEndpoint{{Destination: "system", ServerURL: "http://100.85.25.33:8090", Topic: "pipelines"}}
|
|
|
|
|
m.pipelines = []protocol.PipelineSummary{{ID: 8, Name: "Example 4: human decision", Version: 1, Stages: 3, CreatedAt: "2026-10-08T20:00:00Z", UpdatedAt: "2026-10-08T20:00:00Z"}}
|
|
|
|
|
m.pipelines = []protocol.PipelineSummary{{ID: 8, Name: "Implement, review and land", Version: 1, Stages: 4, CreatedAt: "2026-10-08T20:00:00Z", UpdatedAt: "2026-10-08T20:00:00Z"}}
|
|
|
|
|
save := func(name string) {
|
|
|
|
|
t.Helper()
|
|
|
|
|
view := ansi.Strip(m.View())
|
|
|
|
@@ -66,7 +66,7 @@ func TestUIUXReviewSnapshots(t *testing.T) {
|
|
|
|
|
save("review-stage")
|
|
|
|
|
m.runOpen = true
|
|
|
|
|
m.keys.runs = true
|
|
|
|
|
m.runDetail = &protocol.RunDetail{RunSummary: protocol.RunSummary{ID: 1, Name: "Example 4: human decision", PipelineID: 8, Version: 1, Status: "succeeded", CreatedAt: "2026-10-08T20:00:00Z", FinishedAt: "2026-10-08T20:01:00Z"}, Graph: graph, Steps: []protocol.RunStep{{Sequence: 1, Stage: "plan", Status: "completed", Outcome: "success", Target: "decide"}, {Sequence: 2, Stage: "decide", Status: "completed", Outcome: "approve", Target: "act"}, {Sequence: 3, Stage: "act", Status: "completed", Outcome: "success", Target: protocol.SuccessEnd, Output: map[string]any{"summary": "Fixture review report", "findings": "Fixture findings"}}}}
|
|
|
|
|
m.runDetail = &protocol.RunDetail{RunSummary: protocol.RunSummary{ID: 1, Name: "Implement, review and land", PipelineID: 8, Version: 1, Status: "succeeded", CreatedAt: "2026-10-08T20:00:00Z", FinishedAt: "2026-10-08T20:01:00Z"}, Graph: graph, Steps: []protocol.RunStep{{Sequence: 1, Stage: "Code", Status: "completed", Outcome: "success", Target: "Review"}, {Sequence: 2, Stage: "Review", Status: "completed", Outcome: "success", Target: "UIReview"}, {Sequence: 3, Stage: "UIReview", Status: "completed", Outcome: "approved", Target: "Land"}, {Sequence: 4, Stage: "Land", Status: "completed", Outcome: "success", Target: protocol.SuccessEnd, Output: map[string]any{"summary": "Fixture review report", "findings": "Fixture findings"}}}}
|
|
|
|
|
m.runStepIndex = 3
|
|
|
|
|
save("run")
|
|
|
|
|
}
|
|
|
|
|