Skip to content

test(e2e): dashboard honesty regression suite (#164/#165 lock-in)#181

Merged
operatoruplift merged 1 commit intomasterfrom
dashboard-honesty-test
Apr 27, 2026
Merged

test(e2e): dashboard honesty regression suite (#164/#165 lock-in)#181
operatoruplift merged 1 commit intomasterfrom
dashboard-honesty-test

Conversation

@operatoruplift
Copy link
Copy Markdown
Owner

Locks in the dashboard fabrication fix in CI

PRs #164 (dashboard home), #165 (notifications/workflows/analytics), #166 (agents/[id], CommandBar, AgentProvider, onboarding, integrations), and #167 (api/dashboard/stats zero-fallback) eliminated user-specific fabrication. This PR adds the regression net so future drift fails CI.

tests/e2e/dashboard-honesty.spec.ts (new — 3 specs)

Three scoped specs running against the dashboard-gated routes via the auth-bypass helpers from #151.

Test What it asserts
/app dashboard New honest labels present (Helpers installed, Chat sessions, Memories saved). No fabricated values: "12.4K", "Security Threats Blocked", "Gold Agent", "0.0847", "Blackwall", "Uplift Core Online", "Warp Network", "Event Stream", "US-EAST-1". Activity feed is empty-state OR real notifications, never the old 5-event fake feed.
/notifications No "Blackwall: 3 threats", no "CodePilot Pro updated", no "1,247 new documents".
/workflows No "142 runs" / "891 runs" hardcoded fake counts.

The test uses contextual assertions rather than blanket banned-string matching because some numerals are legitimate (e.g. "47" on its own elsewhere). What's banned is the pairing — "Security Threats Blocked" + numeric values together.

CI workflow

Adds dashboard-honesty.spec.ts to the hermetic Playwright list. The CI run now includes:

  • helpers, copy-check, capability-check, trust-gate, check-orchestrator, health-adapters, magicblock-honest-status (governance + engineering)
  • chat-honesty, consumer-copy, dashboard-honesty (regression net for the 30-PR sweep)

Verified

pnpm exec tsc --noEmit
# exit 0

pnpm check
# 3 passed, 0 failed

pnpm exec playwright test tests/e2e/dashboard-honesty.spec.ts --reporter=list
# 3 passed (37.0s)
#  ✓  /app dashboard renders honest stats and empty activity for a fresh user
#  ✓  /notifications shows real-only notifications, no Blackwall stubs
#  ✓  /workflows starter templates show 0 runs and Never lastRun

Net diff

2 files changed, 112 insertions(+)

Rollback

Single git revert.

Locks in the user-specific fabrication fixes that PRs #164/#165
shipped to /app, /notifications, /workflows. If a future PR drifts
back toward fake stats, fabricated activity, or zombie "Blackwall"
language, CI fails before merge.

## tests/e2e/dashboard-honesty.spec.ts (new)

Three scoped specs running against the dashboard-gated routes via
the auth-bypass helpers from #151.

| Test | Asserts |
|---|---|
| /app dashboard | "Helpers installed / Chat sessions / Memories saved" labels present, no "12.4K", "47", "Security Threats Blocked", "Gold Agent", "0.0847", "Blackwall", "Uplift Core Online", "Warp Network", "Event Stream", "US-EAST-1" anywhere in the rendered DOM. Activity feed is empty-state OR real notifications, never the old 5-event fake feed. |
| /notifications | No "Blackwall: 3 threats", no "CodePilot Pro updated", no "1,247 new documents". |
| /workflows | No "142 runs" / "891 runs" hardcoded fake counts. |

The test deliberately uses contextual assertions rather than blanket
banned-string match because some numerals are legitimate (e.g. "47"
on its own can appear elsewhere; what we're banning is "47 Security
Threats Blocked" together).

## .github/workflows/ci.yml

dashboard-honesty.spec.ts joins consumer-copy + chat-honesty in the
hermetic Playwright run.

## Verified

- pnpm exec tsc --noEmit: clean
- pnpm check: 3 passed, 0 failed
- pnpm exec playwright test dashboard-honesty.spec.ts: 3 passed (37s)

## Rollback

Single git revert. 2 files.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Apr 27, 2026 4:06pm

@operatoruplift operatoruplift merged commit 812e680 into master Apr 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant