chore(tooling): 对齐协作规范与 Playwright 运行配置

统一设备配置和浏览器启动入口,加入窗口焦点守卫,并按运行隔离报告和追踪文件。
This commit is contained in:
zhanjunhao
2026-11-17 14:48:50 +08:00
parent 67969a041d
commit d878f0db21
30 changed files with 2089 additions and 160 deletions
+9 -3
View File
@@ -53,7 +53,7 @@
"test": "node scripts/test.mjs",
"test:e2e": "playwright test",
"test:e2e:headed": "playwright test --headed",
"test:e2e:report": "playwright show-report",
"test:e2e:report": "node scripts/run-playwright.mjs report",
"lint": "prettier . --check",
"lint:fix": "prettier . --write",
"check": "npm run check:ui && npm run eslint && npm test -- --test-concurrency=1 && npm run build",
@@ -65,7 +65,13 @@
"i18n:sync": "i18next-cli sync",
"i18n:lint": "i18next-cli lint",
"check:ui": "node scripts/check-ui-dependencies.mjs",
"vendor:icons": "node scripts/vendor-brand-icons.mjs"
"vendor:icons": "node scripts/vendor-brand-icons.mjs",
"test:e2e:headless": "node scripts/run-playwright.mjs headless",
"test:e2e:extended": "node scripts/run-playwright.mjs extended",
"test:e2e:dist": "node scripts/run-playwright.mjs dist",
"verify:build": "node scripts/verify-build.mjs",
"test:acceptance": "npm test -- --test-concurrency=1 && node scripts/run-acceptance.mjs",
"test:e2e:environment": "node scripts/test-playwright-environment.mjs"
},
"browserslist": {
"production": [
@@ -80,7 +86,7 @@
]
},
"devDependencies": {
"@playwright/test": "^1.64.1",
"@playwright/test": "1.64.1",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.21",
"esbuild": "0.21.5",