f3097e1096
- 删除 apps/ai-game-creator-shell/tests/appSurface/project-preview.suite.ts 及其下 preview-shortcuts.suite / run-history.suite 与全部辅助模块(fixtures、invoke-mock、message-bubble、四个 assert-* 流程) - 删除 tests/appSurface.test.ts 里对应的 import 与注册 - 这些用例断言的是已退役的 Supervisor 工作台壳:项目摘要面板、开发环境、LLM 状态、Agent 状态、编排 Trace、`/runs` `/read` 聊天命令,以及 `chat_with_game_creator_agent`;这些对象在当前源码里都已不存在
56 lines
2.3 KiB
TypeScript
56 lines
2.3 KiB
TypeScript
/** @vitest-environment jsdom */
|
|
import { vi } from 'vitest';
|
|
|
|
import { registerAuthTests } from './appSurface/auth.suite';
|
|
import { registerChatComposerControlTests } from './appSurface/chat-composer.suite';
|
|
import { registerDesignAgentSurfaceTests } from './appSurface/design-agent.suite';
|
|
import { describe } from './appSurface/harness';
|
|
import {
|
|
registerClientHomeTests,
|
|
registerHomeProjectCreationTests,
|
|
registerRecentProjectsTests,
|
|
} from './appSurface/home.suite';
|
|
import { registerPlanGddApprovalTests } from './appSurface/plan-gdd.suite';
|
|
import { registerProjectConversationTests } from './appSurface/project-conversation.suite';
|
|
import {
|
|
registerProjectAgentStatusTests,
|
|
registerProjectWorkbenchFoundationTests,
|
|
registerProjectWorkbenchNavigationTests,
|
|
} from './appSurface/project-development.suite';
|
|
import {
|
|
registerAgentStatusDerivationTests,
|
|
registerRuntimeSettingsTests,
|
|
} from './appSurface/runtime-settings.suite';
|
|
import { registerToolCallGroupTests } from './appSurface/tool-call-group.suite';
|
|
|
|
/**
|
|
* 原生文件对话框是宿主能力,不能在 jsdom 里真开窗。
|
|
*
|
|
* 这里只替代"用户选了哪个目标路径"这一件事:`save` 按调用方给的建议文件名返回一个
|
|
* 固定的导出路径,让「下载」用例能断言工具条真的走到了 `save_local_project_asset_file`。
|
|
* 声明必须留在入口文件:`project-conversation.suite` 等模块比
|
|
* `project-development.suite` 更早 import 工作台视图,放在别处注册会晚于真实模块实例化。
|
|
*/
|
|
vi.mock('@tauri-apps/plugin-dialog', () => ({
|
|
open: async () => null,
|
|
save: async (options?: { defaultPath?: string }) =>
|
|
options?.defaultPath ? `/tmp/native-export/${options.defaultPath}` : null,
|
|
}));
|
|
|
|
describe('AI 游戏创作 App 界面边界', () => {
|
|
registerProjectWorkbenchFoundationTests();
|
|
registerAuthTests();
|
|
registerAgentStatusDerivationTests();
|
|
registerClientHomeTests();
|
|
registerHomeProjectCreationTests();
|
|
registerRuntimeSettingsTests();
|
|
registerRecentProjectsTests();
|
|
registerProjectWorkbenchNavigationTests();
|
|
registerProjectConversationTests();
|
|
registerProjectAgentStatusTests();
|
|
registerPlanGddApprovalTests();
|
|
registerDesignAgentSurfaceTests();
|
|
registerToolCallGroupTests();
|
|
registerChatComposerControlTests();
|
|
});
|