feat: 解决python虚拟环境问题
This commit is contained in:
@@ -67,11 +67,17 @@ test('manages a task and reads a real run log', async ({ page, request }) => {
|
||||
await newTaskDialog
|
||||
.getByPlaceholder('参数值 (可选,无值可留空)')
|
||||
.fill('full')
|
||||
await newTaskDialog
|
||||
.getByLabel(/虚拟环境目录/)
|
||||
.fill('.venv')
|
||||
await newTaskDialog
|
||||
.getByText('调用预览 (Runtime Preview)')
|
||||
.scrollIntoViewIfNeeded()
|
||||
await expect(
|
||||
newTaskDialog.getByText('--mode full', { exact: false }),
|
||||
newTaskDialog.getByText(
|
||||
'.venv\\Scripts\\python.exe main.py --mode full',
|
||||
{ exact: false },
|
||||
),
|
||||
).toBeVisible()
|
||||
await page.screenshot({
|
||||
path: 'test-results/dashboard-task-editor-runtime.png',
|
||||
|
||||
Reference in New Issue
Block a user