1
0

fix(e2e): 修复对话框关闭问题,完善 E2E 测试

- 修复 TDesign Dialog onConfirm 不自动关闭的问题
- 使用 useEffect 监听 mutation 状态自动关闭对话框
- 测试使用 waitForResponse 等待 API 响应
- 添加 clearDatabase 函数确保测试隔离
- 归档 e2e-real-backend 变更到 archive/2026-04-22
- 同步 e2e-testing spec 到主 specs
This commit is contained in:
2026-04-22 10:32:57 +08:00
parent 59179094ed
commit f488b9cc15
13 changed files with 112 additions and 206 deletions

View File

@@ -24,11 +24,12 @@ export default defineConfig({
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
workers: 1,
reporter: 'html',
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
storageState: undefined,
},
projects: [
{
@@ -50,6 +51,9 @@ export default defineConfig({
command: 'bun run dev',
url: 'http://localhost:5173',
reuseExistingServer: false,
env: {
NEX_BACKEND_PORT: String(E2E_PORT),
},
},
],
})