修复 CI 测试口径与超时
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 (pull_request) Has been cancelled

将素材标签刷新用例切回 game Agent 场景,保留策划 Agent 隐藏 @ 入口后的既有链路验证

将删除文件后验证请求等待窗口从 2 秒放宽到同类用例的 10 秒,避免固定等待导致 CI 偶发超时
This commit is contained in:
2026-09-16 08:21:59 +00:00
parent c3a115d794
commit e81548576c
2 changed files with 6 additions and 6 deletions
@@ -1494,7 +1494,7 @@ async fn background_agent_runtime_deletes_file_then_verifies_before_completion()
assert!(prompt_input.contains("只删除项目内普通文件"));
let verification_request = receiver
.recv_timeout(Duration::from_secs(2))
.recv_timeout(Duration::from_secs(10))
.expect("verification plan request");
assert!(verification_request.contains("file.delete"));
assert!(verification_request.contains("已删除 game/obsolete-runtime-file.txt"));
@@ -89,9 +89,10 @@ function graphFor(manifest: GameCreationAppManifest) {
*
* 这里只把壳换成用例自己的 `useState`(壳那份 CAS 归并由
* `workspaceLauncherManifestMerge.test.tsx` 单独钉住),画布、聊天输入区、
* 标签统计与候选全部是被测的真实实现。
* 标签统计与候选全部是被测的真实实现。策划 Agent 会隐藏 @ 入口,这条链路钉住
* game Agent 的既有行为。
*/
function TagStatsHost({ planningStartMode }: { planningStartMode: boolean }) {
function TagStatsHost() {
const [manifest, setManifest] = useState(() => {
const initial = createFixtureManifest();
disk.manifest = initial;
@@ -117,7 +118,6 @@ function TagStatsHost({ planningStartMode }: { planningStartMode: boolean }) {
initialProjectPath={PROJECT_PATH}
initialProjectManifest={manifest}
projectSupervisorOnly
planningStartMode={planningStartMode}
onManifestChange={onManifestChange}
/>
}
@@ -251,7 +251,7 @@ describe('改完素材标签后聊天 @ 选择器的标签统计与候选跟着
it('在资源画布改完标签保存后,聊天 @ 选择器出现该标签及其计数,并按它收窄候选', async () => {
const { classificationWrites } = installHostTauri();
render(<TagStatsHost planningStartMode />);
render(<TagStatsHost />);
// 先在画布上打开「编辑素材标签」面板改标签:与用户的操作路径一致。
fireEvent.click(
@@ -294,7 +294,7 @@ describe('改完素材标签后聊天 @ 选择器的标签统计与候选跟着
it('未标注标签时聊天 @ 选择器不渲染任何标签 chip', async () => {
installHostTauri();
render(<TagStatsHost planningStartMode />);
render(<TagStatsHost />);
await openChatPicker();
expect(pickerTagChips()).toEqual([]);