修正钱包入口回归用例的断言目标
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Failing after 17s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Failing after 17s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Failing after 18s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Failing after 18s
Project CI / AI game creator shell Rust crates (pull_request) Failing after 16s
Project CI / Native shell tests (pull_request) Failing after 18s
Project CI / Backend tests (pull_request) Failing after 18s
Project CI / AI game creator shell Rust smoke (pull_request) Failing after 19s
Project CI / Frontend tests (pull_request) Failing after 7s
Project CI / AI game creator shell web tests (pull_request) Failing after 12s
Project CI / Repository checks (pull_request) Failing after 12s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Failing after 17s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Failing after 17s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Failing after 18s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Failing after 18s
Project CI / AI game creator shell Rust crates (pull_request) Failing after 16s
Project CI / Native shell tests (pull_request) Failing after 18s
Project CI / Backend tests (pull_request) Failing after 18s
Project CI / AI game creator shell Rust smoke (pull_request) Failing after 19s
Project CI / Frontend tests (pull_request) Failing after 7s
Project CI / AI game creator shell web tests (pull_request) Failing after 12s
Project CI / Repository checks (pull_request) Failing after 12s
- 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 导致用例一直失败;注释同步改成当前落点
This commit is contained in:
@@ -5962,14 +5962,15 @@ export function registerProjectWorkbenchFoundationTests() {
|
||||
expect(projectDevelopmentSource).toMatch(
|
||||
/<UiEditorPage[\s\S]*?walletEntry=\{walletEntry\}[\s\S]*?\/>/,
|
||||
);
|
||||
// 会话列头部按 Codex 风格精简掉了标题/审批按钮/钱包槽。`walletEntry` 的落点只剩两处:
|
||||
// UI 编辑器头部(上面那条断言),以及做方案分支头部(`planningStartMode`,本任务明确
|
||||
// 保持原样)。右侧对话面板自己的「泥点」行改由对话设置浮层承载,
|
||||
// 不再在 `game-workbench-chat` 头部渲染 `<div className="game-workbench-chat-wallet">`。
|
||||
const chatWalletSlots = projectDevelopmentSource.match(
|
||||
/<div className="game-workbench-chat-wallet">\{walletEntry\}<\/div>/g,
|
||||
// `walletEntry` 现在落在布局层:策划工作台一处(`planningStartMode` 分支),主工作台
|
||||
// 一处且只在非 UI 编辑器路由下渲染(编辑器自己会用同一份 walletEntry 渲染头部钱包)。
|
||||
const layoutWalletSlots = projectDevelopmentSource.match(
|
||||
/<div className="game-workbench-layout-account">\{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,
|
||||
|
||||
Reference in New Issue
Block a user