fix(tests): align AgentRecord fixtures with roleLevel + ConnectorId enums

- Add required `roleLevel` to dashboard-charts and prompt-manager fixtures
  so they satisfy the AgentRecord contract.
- Replace legacy "anthropic" connectorId with `claude_local` in
  approval-hook fixture to match the current `ConnectorId` union.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 01:30:20 -04:00
1 parent 70c2a3aa9e
commit 597fc13581
3 files changed
+126

No files matched your search

@@ -10,6 +10,7 @@ function buildCtx(overrides: Partial<PromptContext> = {}): PromptContext {
name: "CTO",
role: "CTO",
title: "Chief Technology Officer",
roleLevel: "c_suite",
department: "engineering",
status: "active",
reportsTo: "ceo-1",
@@ -41,6 +42,7 @@ function buildCtx(overrides: Partial<PromptContext> = {}): PromptContext {
name: "CEO",
role: "CEO",
title: "Chief Executive Officer",
roleLevel: "c_suite",
department: "executive",
status: "active",
reportsTo: null,