Merge remote-tracking branch 'origin/master' into codex/remove-media-turn-cap
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

This commit is contained in:
2026-09-19 01:30:26 +08:00
@@ -2519,6 +2519,11 @@ export function registerDeveloperAgentWindowTests() {
const emptyGoalPanel = await screen.findByLabelText('Agent Goal 状态');
expect(within(emptyGoalPanel).getByText('尚未开始')).not.toBeNull();
// 读取历史的异步链路未结束时按钮处于 disabled,等它可用再切换模式,避免点击落空。
const goalModeButton = screen.getByRole('button', { name: '目标' });
await waitFor(() => {
expect(goalModeButton.hasAttribute('disabled')).toBe(false);
});
selectDeveloperAgentChatMode('goal');
expect(
screen.getByRole('button', { name: '目标' }).getAttribute('aria-pressed'),