fix(tests): update test expectations to match current implementation
- Add missing AGENT_TEAMS_NAMESPACED_TEAMMATE_OPERATIONAL_TOOL_NAMES to agent-teams-controller mocks in provisioning tests - Fix ChangeExtractorService test: pass createdAt to match actual signature - Fix TeamGraphAdapter particle label expectations (max=52 truncation)
This commit is contained in:
parent
f7876d89f7
commit
d923661127
4 changed files with 6 additions and 3 deletions
|
|
@ -703,6 +703,7 @@ describe('ChangeExtractorService', () => {
|
|||
taskId: TASK_ID,
|
||||
presence: 'has_changes',
|
||||
taskSignature: buildTaskChangePresenceDescriptor({
|
||||
createdAt: '2026-03-01T09:55:00.000Z',
|
||||
owner: 'alice',
|
||||
status: 'completed',
|
||||
intervals: [
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ vi.mock('../../../../src/main/utils/fsRead', async (importOriginal) => {
|
|||
});
|
||||
|
||||
vi.mock('agent-teams-controller', () => ({
|
||||
AGENT_TEAMS_NAMESPACED_TEAMMATE_OPERATIONAL_TOOL_NAMES: [] as readonly string[],
|
||||
createController: ({ teamName }: { teamName: string }) => ({
|
||||
messages: {
|
||||
appendSentMessage: (message: Record<string, unknown>) =>
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ vi.mock('../../../../src/main/utils/fsRead', async (importOriginal) => {
|
|||
});
|
||||
|
||||
vi.mock('agent-teams-controller', () => ({
|
||||
AGENT_TEAMS_NAMESPACED_TEAMMATE_OPERATIONAL_TOOL_NAMES: [] as readonly string[],
|
||||
createController: ({ teamName }: { teamName: string }) => ({
|
||||
messages: {
|
||||
appendSentMessage: (message: Record<string, unknown>) =>
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ describe('TeamGraphAdapter particles', () => {
|
|||
expect(graph.particles[0]).toMatchObject({
|
||||
kind: 'inbox_message',
|
||||
progress: 0,
|
||||
label: '✉ Please check the latest b…',
|
||||
label: '✉ Please check the latest build output now',
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ describe('TeamGraphAdapter particles', () => {
|
|||
expect(graph.particles).toHaveLength(1);
|
||||
expect(graph.particles[0]).toMatchObject({
|
||||
kind: 'task_comment',
|
||||
label: '💬 Need clarification on the…',
|
||||
label: '💬 Need clarification on the acceptance criteria befor…',
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ describe('TeamGraphAdapter particles', () => {
|
|||
expect(graph.particles).toHaveLength(1);
|
||||
expect(graph.particles[0]).toMatchObject({
|
||||
kind: 'task_comment',
|
||||
label: '💬 I found the root cause, h…',
|
||||
label: '💬 I found the root cause, handing notes over now',
|
||||
});
|
||||
expect(
|
||||
graph.edges.some((edge) => edge.id === 'edge:msg:member:my-team:alice:task:my-team:task-2')
|
||||
|
|
|
|||
Loading…
Reference in a new issue