Files
wenzi/frontend/playwright.config.cjs
Your Name 91a0b77f7a test(cache): 修复CacheConfigTest边界值测试
- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl
- 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE
- 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查
- 所有1266个测试用例通过
- 覆盖率: 指令81.89%, 行88.48%, 分支51.55%

docs: 添加项目状态报告
- 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态
- 包含质量指标、已完成功能、待办事项和技术债务
2026-03-02 13:31:54 +08:00

55 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const { defineConfig, devices } = require('@playwright/test');
/**
* Playwright E2E测试配置
* 蚊子项目端到端测试配置
*/
module.exports = defineConfig({
// 测试目录
testDir: './e2e',
// 测试文件匹配模式
testMatch: ['e2e/tests/**/*.spec.ts'],
// 忽略其他测试目录
testIgnore: ['**/h5/**', '**/admin/**', '**/node_modules/**'],
// 完全并行执行
fullyParallel: true,
// 重试策略
retries: 1,
// 并行工作进程数
workers: undefined,
// 测试报告器
reporter: [['list']],
// 共享配置
use: {
baseURL: 'http://localhost:5175',
apiBaseURL: 'http://localhost:8080',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
actionTimeout: 15000,
navigationTimeout: 30000,
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
},
// 项目配置只使用chromium简化
projects: [
{
name: 'chromium',
use: {
browserName: 'chromium',
launchOptions: {
executablePath: '/home/long/.cache/ms-playwright/chromium-1200/chrome-linux64/chrome',
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']
}
},
},
],
});