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:
@@ -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/
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"preset": "desktop",
|
"preset": "desktop",
|
||||||
|
"chromeFlags": ["--disable-crash-reporter", "--no-sandbox", "--headless=new"],
|
||||||
"onlyCategories": [
|
"onlyCategories": [
|
||||||
"performance",
|
"performance",
|
||||||
"accessibility",
|
"accessibility",
|
||||||
|
|||||||
@@ -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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"cookies": [],
|
||||||
|
"origins": []
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user