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

+1
View File
@@ -63,6 +63,7 @@ function makeAgent(overrides: Partial<AgentRecord> = {}): AgentRecord {
name: "Alice",
role: "engineer",
title: "Software Engineer",
roleLevel: "ic",
department: "engineering",
status: "active",
reportsTo: null,