修复 AI 创作壳测试稳定性
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 4m35s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m32s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 4m48s
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 4m59s
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 5m37s
Project CI / AI game creator shell Rust crates (push) Successful in 2m42s
Project CI / Native shell tests (push) Failing after 2m47s
Project CI / Frontend tests (push) Failing after 3m29s
Project CI / AI game creator shell web tests (push) Failing after 49s
Project CI / Repository checks (push) Failing after 3m16s
Project CI / Backend tests (push) Successful in 7m7s

调整 Agent 项目打开测试的异步就绪等待

延长权限策略连续命令测试超时预算

同步 taonier-art-assets skill-pack 内容指纹

补充对应实施计划中的测试约定
This commit was merged in pull request #385.
This commit is contained in:
2026-09-16 09:37:28 +00:00
parent 0594a90bdd
commit a1cafde7e9
4 changed files with 9 additions and 14 deletions
@@ -1,6 +1,6 @@
{
"schemaVersion": "agc-skill-pack.v1",
"version": "2026-08-26.16",
"version": "2026-08-26.15",
"skills": [
{
"name": "agc-game-production-workflow",
@@ -22,7 +22,7 @@
"agents/openai.yaml",
"references/workflow-contract.md"
],
"sha256": "f25e5bd27e8fc82c61b08dc66366b5b253ee8d16d7fa72dbf2c94d2462f4e7fc"
"sha256": "d9d8e7e0a6bc512e0b463e0e4bd77edee1cc57f4a6965c9553e0920e38985d5c"
},
{
"name": "agc-project-structure",
@@ -98,7 +98,7 @@
"agents/openai.yaml",
"references/browser-evidence-contract.md"
],
"sha256": "92ecce42d6589e034d32b75bcd155c1fee34a8c7b843eea5780c0577300ed521"
"sha256": "4437cd8a927a1c79a5faf4bcd40e9946676c08a3b460ab171298cabf899f49ad"
},
{
"name": "agc-client-projection",
@@ -1338,6 +1338,7 @@ export function registerProjectCommandTests() {
});
});
// 连续 12 次聊天提交验证策略累计与互斥,包含 Lexical 提交和确认面板更新。
it('keeps project policy deny and confirm command lists mutually exclusive', async () => {
const manifest = createGameCreationAppManifest(
'local-project-draft',
@@ -1612,7 +1613,7 @@ export function registerProjectCommandTests() {
}),
});
});
});
}, 15_000);
it('does not write project policy for no-op policy changes', async () => {
const manifest = createGameCreationAppManifest(
@@ -10300,15 +10300,7 @@ export function registerProjectAgentStatusTests() {
);
window.__TAURI__ = { core: { invoke } };
renderAppAt('/?dev&projectPath=%2Ftmp%2Fauthorized-game');
await waitFor(() => {
expect(
(
screen.getByRole('button', {
name: '刷新 Agent',
}) as HTMLButtonElement
).disabled,
).toBe(false);
});
// 项目打开包含异步初始化;以按钮启用为就绪条件,再开始弹窗迟到读取场景。\n await waitFor(\n () => {\n expect(\n (\n screen.getByRole(\x27button\x27, { name: \x27刷新 Agent\x27 }) as HTMLButtonElement\n ).disabled,\n ).toBe(false);\n },\n { timeout: 5_000 },\n ); (修复 AI 创作壳测试稳定性)
fireEvent.click(screen.getByRole('button', { name: /拆解创作方向/ }));
await waitFor(() => {
@@ -10324,7 +10316,7 @@ export function registerProjectAgentStatusTests() {
expect(screen.queryByText('关闭后不该写入界面状态')).toBeNull();
expect(screen.queryByText('conversation.read')).toBeNull();
expect(screen.queryByText('memory.agent.read')).toBeNull();
});
}, 10_000);
it('updates the open agent dialog when agent status is refreshed', async () => {
const manifest = createGameCreationAppManifest(