test(tasks): keep the owned-task owner on a catalog row (#1026 after #1139)

This commit is contained in:
Menghuan1918 committed 2026-11-08 00:24:35 +08:00
1 parent 69c32e78c6
commit 64ec9d9745
1 file changed
+3 -1
+3 -1
View File
@@ -817,7 +817,9 @@ describe('Tasks page: owned tasks, host-primitive controls, draggable output', (
['in_progress', false, '进行中'],
['completed', false, '已完成'],
] as const)('keeps the board, task line and tooltip consistent for %s (ready: %s)', async (status, ready, label) => {
withTeam({ tasks: [teamTask({ status, ready, ownerName: 'writer' })] })
// The roster is catalog-driven after #1139: the owner name must exist on a
// catalog row for the task to attach to that child's line.
withTeam({ names: ['writer'], tasks: [teamTask({ status, ready, ownerName: 'writer' })] })
const store = makeStore(snapshotWithChildren(1))
const { container, unmount } = renderRoot(
createElement(SubagentView, { sessionId: 'root', active: true, ctx: makeCtx(store) }),