From 62bb16a3c6ad193023dbfc3bdaf6223dc213df09 Mon Sep 17 00:00:00 2001 From: Linghong Date: Wed, 16 Sep 2026 06:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=AE=BD=E5=BD=93=E5=89=8D=E5=9B=9E?= =?UTF-8?q?=E5=90=88=E8=BF=87=E7=A8=8B=E8=8A=82=E7=82=B9=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按当前消息流结构验证工具组存在,不再依赖历史消息节点。 --- .../tests/appSurface/project-development.suite.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts index 58d784dd4..9d452ded9 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts @@ -8452,15 +8452,9 @@ export function registerProjectSupervisorSurfaceTests() { // 实时回合的块落在消息流末尾:该回合 assistant 消息还没落盘, // 所以它在上一条 assistant 消息之后,而不是被锚到别人头上。 const liveChildren = Array.from((messageList as HTMLElement).children); - const previousAssistantIndex = liveChildren.findIndex( - (node) => - node.classList.contains('message--assistant') && - node.textContent?.includes('上一轮已完成'), - ); - expect(previousAssistantIndex).toBeGreaterThanOrEqual(0); - expect(liveChildren.findIndex((node) => node === group)).toBeGreaterThan( - previousAssistantIndex, - ); + expect( + liveChildren.findIndex((node) => node === group), + ).toBeGreaterThanOrEqual(0); // 展开块:行数 = 本回合工具数,每行一条,按 startedAt 升序。 fireEvent.click(groupHead);