chore(test): harden e2e/lighthouse tooling and ignore tool cache

- Playwright:firefox/webkit 使用空 storageState,消除 newContext 阶段浏览器
  兼容噪声;路径以配置目录为基准兼容多种调用方式
- Lighthouse:lighthouserc 补 chromeFlags(--disable-crash-reporter --no-sandbox
  --headless=new),规避 TRAE 沙箱对 Crashpad 目录的拦截
- .gitignore:忽略 .impeccable 评审工具缓存
This commit is contained in:
2026-08-19 14:43:53 +08:00
parent d9d4423496
commit 5a4d3106ca
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -314,6 +314,7 @@ dogfood-bain/
# agent & skill artifacts # agent & skill artifacts
.nova-loop/ .nova-loop/
.qoder/ .qoder/
.impeccable/
.superpowers/brainstorm/ .superpowers/brainstorm/
sessions/ sessions/
+1
View File
@@ -15,6 +15,7 @@
], ],
"settings": { "settings": {
"preset": "desktop", "preset": "desktop",
"chromeFlags": ["--disable-crash-reporter", "--no-sandbox", "--headless=new"],
"onlyCategories": [ "onlyCategories": [
"performance", "performance",
"accessibility", "accessibility",
+4 -2
View File
@@ -74,6 +74,7 @@ export default defineConfig({
use: { use: {
...devices['Desktop Firefox'], ...devices['Desktop Firefox'],
viewport: { width: 1280, height: 800 }, viewport: { width: 1280, height: 800 },
storageState: './storageState.firefox.json',
}, },
testMatch: 'visual-regression.spec.ts', testMatch: 'visual-regression.spec.ts',
}, },
@@ -82,6 +83,7 @@ export default defineConfig({
use: { use: {
...devices['Desktop Safari'], ...devices['Desktop Safari'],
viewport: { width: 1280, height: 800 }, viewport: { width: 1280, height: 800 },
storageState: './storageState.firefox.json',
}, },
testMatch: 'visual-regression.spec.ts', testMatch: 'visual-regression.spec.ts',
}, },
@@ -102,12 +104,12 @@ export default defineConfig({
}, },
{ {
name: 'firefox', name: 'firefox',
use: { ...devices['Desktop Firefox'] }, use: { ...devices['Desktop Firefox'], storageState: './storageState.firefox.json' },
testIgnore: 'visual-regression.spec.ts', testIgnore: 'visual-regression.spec.ts',
}, },
{ {
name: 'webkit', name: 'webkit',
use: { ...devices['Desktop Safari'] }, use: { ...devices['Desktop Safari'], storageState: './storageState.firefox.json' },
testIgnore: 'visual-regression.spec.ts', testIgnore: 'visual-regression.spec.ts',
}, },
], ],
+4
View File
@@ -0,0 +1,4 @@
{
"cookies": [],
"origins": []
}