From 1c830e6fe653fe9437aa6cbe37d4ca6ccaf79246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 19 Sep 2026 23:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=92=B1=E5=8C=85=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E5=9B=9E=E5=BD=92=E7=94=A8=E4=BE=8B=E7=9A=84=E6=96=AD?= =?UTF-8?q?=E8=A8=80=E7=9B=AE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts 的「keeps the wallet entry available when the workbench opens the UI editor」改为断言 game-workbench-layout-account 的两处落点(策划工作台与主工作台)以及主工作台的 !uiEditorRoute 门控 - 用例原先断言 game-workbench-chat-wallet 出现一次,但该槽位在当前源码里已不存在(钱包移到布局层),断言恒为 null 导致用例一直失败;注释同步改成当前落点 --- .../tests/appSurface/project-development.suite.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 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 1e9c6b726..728ceedf7 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 @@ -5962,14 +5962,15 @@ export function registerProjectWorkbenchFoundationTests() { expect(projectDevelopmentSource).toMatch( //, ); - // 会话列头部按 Codex 风格精简掉了标题/审批按钮/钱包槽。`walletEntry` 的落点只剩两处: - // UI 编辑器头部(上面那条断言),以及做方案分支头部(`planningStartMode`,本任务明确 - // 保持原样)。右侧对话面板自己的「泥点」行改由对话设置浮层承载, - // 不再在 `game-workbench-chat` 头部渲染 `
`。 - const chatWalletSlots = projectDevelopmentSource.match( - /
\{walletEntry\}<\/div>/g, + // `walletEntry` 现在落在布局层:策划工作台一处(`planningStartMode` 分支),主工作台 + // 一处且只在非 UI 编辑器路由下渲染(编辑器自己会用同一份 walletEntry 渲染头部钱包)。 + const layoutWalletSlots = projectDevelopmentSource.match( + /
\{walletEntry\}<\/div>/g, + ); + expect(layoutWalletSlots).toHaveLength(2); + expect(projectDevelopmentSource).toMatch( + /\{!uiEditorRoute && walletEntry \? \(/, ); - expect(chatWalletSlots).toHaveLength(1); expect(projectDevelopmentSource).toMatch(/walletEntry=\{walletEntry\}/); expect(projectDevelopmentSource).toMatch( /const showRunUnavailableHint\s*=\s*!runAvailable\s*&&\s*!uiEditorRoute\s*;/s,