feat: 修改前端显示

This commit is contained in:
2026-10-18 22:52:18 +08:00
parent 8ce02af13a
commit 00a608c149
6 changed files with 235 additions and 82 deletions
+10 -3
View File
@@ -126,9 +126,16 @@ describe('TaskDashboard', () => {
renderApp()
await user.click(screen.getByRole('button', { name: '+ 新建任务' }))
await user.clear(screen.getByLabelText('任务标识'))
await user.type(screen.getByLabelText('任务标识'), 'new_task')
await user.type(screen.getByLabelText('任务名称'), 'New task')
await user.click(screen.getByRole('button', { name: '+ 添加参数' }))
expect(
screen.getByPlaceholderText('参数名 (如 --mode 或 -v)'),
).toBeInTheDocument()
expect(
screen.getByPlaceholderText('参数值 (可选,无值可留空)'),
).toBeInTheDocument()
await user.clear(screen.getByLabelText(/任务标识/))
await user.type(screen.getByLabelText(/任务标识/), 'new_task')
await user.type(screen.getByLabelText('名称'), 'New task')
await user.type(screen.getByLabelText('工作目录'), 'D:\\Projects\\new')
await user.click(