补充项目策略快捷入口
新增索引资产登记和记忆写入确认草稿入口 补充用户面策略快捷入口测试 同步AI游戏创作App技术方案和共享决策记录
This commit is contained in:
@@ -9815,6 +9815,33 @@ export function App() {
|
||||
>
|
||||
任务
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
disabled={!localProject}
|
||||
onClick={() =>
|
||||
prepareChatCommandDraft('/policy-confirm project.index')
|
||||
}
|
||||
>
|
||||
索引确认
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
disabled={!localProject}
|
||||
onClick={() =>
|
||||
prepareChatCommandDraft('/policy-confirm asset.register')
|
||||
}
|
||||
>
|
||||
资产登记确认
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
disabled={!localProject}
|
||||
onClick={() =>
|
||||
prepareChatCommandDraft('/policy-confirm memory.write')
|
||||
}
|
||||
>
|
||||
记忆写入确认
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
disabled={!localProject}
|
||||
|
||||
@@ -240,6 +240,24 @@ describe('AI 游戏创作 App 界面边界', () => {
|
||||
(screen.getByRole('button', { name: '任务' }) as HTMLButtonElement)
|
||||
.disabled,
|
||||
).toBe(true);
|
||||
expect(
|
||||
(screen.getByRole('button', { name: '索引确认' }) as HTMLButtonElement)
|
||||
.disabled,
|
||||
).toBe(true);
|
||||
expect(
|
||||
(
|
||||
screen.getByRole('button', {
|
||||
name: '资产登记确认',
|
||||
}) as HTMLButtonElement
|
||||
).disabled,
|
||||
).toBe(true);
|
||||
expect(
|
||||
(
|
||||
screen.getByRole('button', {
|
||||
name: '记忆写入确认',
|
||||
}) as HTMLButtonElement
|
||||
).disabled,
|
||||
).toBe(true);
|
||||
expect(
|
||||
(screen.getByRole('button', { name: '预览确认' }) as HTMLButtonElement)
|
||||
.disabled,
|
||||
@@ -2061,6 +2079,21 @@ describe('AI 游戏创作 App 界面边界', () => {
|
||||
await screen.findByText(/策略:\.agent\/policy\.json/),
|
||||
).not.toBeNull();
|
||||
const composerInput = screen.getByLabelText('创作想法');
|
||||
fireEvent.click(screen.getByRole('button', { name: '索引确认' }));
|
||||
expect(composerInput).toHaveProperty(
|
||||
'value',
|
||||
'/policy-confirm project.index',
|
||||
);
|
||||
fireEvent.click(screen.getByRole('button', { name: '资产登记确认' }));
|
||||
expect(composerInput).toHaveProperty(
|
||||
'value',
|
||||
'/policy-confirm asset.register',
|
||||
);
|
||||
fireEvent.click(screen.getByRole('button', { name: '记忆写入确认' }));
|
||||
expect(composerInput).toHaveProperty(
|
||||
'value',
|
||||
'/policy-confirm memory.write',
|
||||
);
|
||||
fireEvent.click(screen.getByRole('button', { name: '预览确认' }));
|
||||
expect(composerInput).toHaveProperty(
|
||||
'value',
|
||||
|
||||
Reference in New Issue
Block a user