稳定AI前端异步测试
等待项目Agent运行态水合完成后再断言提交方式 避免干净runner较慢时同步查询抢跑
This commit is contained in:
@@ -18534,7 +18534,7 @@ describe('AI 游戏创作 App 界面边界', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: /拆解创作方向/ }));
|
||||
const dialog = await screen.findByLabelText('Agent 对话');
|
||||
expect(
|
||||
within(dialog).getByLabelText('项目 Agent 后台任务提交方式'),
|
||||
await within(dialog).findByLabelText('项目 Agent 后台任务提交方式'),
|
||||
).toHaveProperty('value', 'steer');
|
||||
|
||||
const input = within(dialog).getByLabelText('Agent 对话内容');
|
||||
|
||||
Reference in New Issue
Block a user