Files
lhk229 fbf8d34f45
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Successful in 5m27s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Successful in 5m28s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 5m28s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 5m44s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m46s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m11s
Project CI / Repository checks (pull_request) Successful in 3m43s
Project CI / Frontend tests (pull_request) Successful in 4m35s
Project CI / Native shell tests (pull_request) Successful in 6m8s
Project CI / Backend tests (pull_request) Successful in 7m8s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m11s
新增 AGC 首页策划补全入口
首页做游戏入口增加策划补全勾选项

勾选后复用 planning Agent Runtime 启动模式

补充首页启动模式回归测试与实施计划
2026-09-15 12:14:03 +08:00

19 lines
669 B
TypeScript

import { describe, expect, it } from 'vitest';
import { resolveHomeStartMode } from '../src/view/home/homeStartMode';
describe('AGC 首页启动模式', () => {
it('做游戏勾选策划补全时进入策划 runtime', () => {
expect(resolveHomeStartMode('game', true)).toBe('planning');
});
it('做游戏未勾选策划补全时保持直接创作', () => {
expect(resolveHomeStartMode('game', false)).toBe('direct-build');
});
it('做方案始终进入策划 runtime,其他入口不受影响', () => {
expect(resolveHomeStartMode('doc', false)).toBe('planning');
expect(resolveHomeStartMode('art', true)).toBe('direct-build');
});
});