carlos / platform Public

console: give the operator screenshots a deploy burst

TestOperatorScreenshots now seeds four of ann's actions on shop a minute
apart, ending in a CLI ship and promote, so the Activity shot shows a
folded burst and the dashboard shot her merged "shipped and promoted" row.
Review aid only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 502056c3fe7d6891aa2161b5df36eb156987143d parent 4b1cfc8
1 file changed, +12 −0
  • internal/console/opshots_test.go +12 −0

CI failed — run details

diff --git a/internal/console/opshots_test.go b/internal/console/opshots_test.go
index d414a296e..8340ccbae 100644
--- a/internal/console/opshots_test.go
+++ b/internal/console/opshots_test.go
@@ -88,6 +88,18 @@ func TestOperatorScreenshots(t *testing.T) {
fx := newConsoleFixture(t)
w := seedOperatorWorld(t, fx)
seedOperatorShotExtras(t, fx)
+ // A deploy burst of ann's on shop, so Activity shows a fold and the
+ // dashboard her merged ship and promote.
+ for i, r := range []Activity{
+ {Action: "env-set", Detail: "Set API_URL"},
+ {Action: "env-set", Detail: "Set FEATURE_FLAGS"},
+ {Action: "ship", Detail: "shipped v42 (cli)"},
+ {Action: "promote", Detail: "promoted v42 to canary/eu (cli)"},
+ } {
+ if err := fx.st.RecordActivity(w.shop.ID, "shop", "ann@example.com", r, w.now.Add(time.Duration(i)*time.Minute)); err != nil {
+ t.Fatal(err)
+ }
+ }
target, err := url.Parse(fx.ts.URL)
if err != nil {
t.Fatal(err)