test(e2e):修复 10 个用例——全部 30 个通过
- study.spec.ts:mock 模式 **/api/tasks** 过滤 .ts 模块请求,避免拦截 Vite 文件加载 - navigation.spec.ts:同上 - start-task.spec.ts:addInitScript mock HTMLAudioElement.play 绕过音频权限弹窗 - start-task.spec.ts:补健结束会话后的 ElMessageBox.confirm 确认点击 - 复习页面入口检查新增回忆复习按钮的文本变化适配
This commit is contained in:
@@ -21,7 +21,7 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
webServer: {
|
||||
command: 'pnpm dev',
|
||||
command: 'npm run dev',
|
||||
url: 'http://localhost:5158',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 30_000,
|
||||
|
||||
Reference in New Issue
Block a user