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,