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:
@@ -74,6 +74,7 @@ export default defineConfig({
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
viewport: { width: 1280, height: 800 },
|
||||
storageState: './storageState.firefox.json',
|
||||
},
|
||||
testMatch: 'visual-regression.spec.ts',
|
||||
},
|
||||
@@ -82,6 +83,7 @@ export default defineConfig({
|
||||
use: {
|
||||
...devices['Desktop Safari'],
|
||||
viewport: { width: 1280, height: 800 },
|
||||
storageState: './storageState.firefox.json',
|
||||
},
|
||||
testMatch: 'visual-regression.spec.ts',
|
||||
},
|
||||
@@ -102,12 +104,12 @@ export default defineConfig({
|
||||
},
|
||||
{
|
||||
name: 'firefox',
|
||||
use: { ...devices['Desktop Firefox'] },
|
||||
use: { ...devices['Desktop Firefox'], storageState: './storageState.firefox.json' },
|
||||
testIgnore: 'visual-regression.spec.ts',
|
||||
},
|
||||
{
|
||||
name: 'webkit',
|
||||
use: { ...devices['Desktop Safari'] },
|
||||
use: { ...devices['Desktop Safari'], storageState: './storageState.firefox.json' },
|
||||
testIgnore: 'visual-regression.spec.ts',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"cookies": [],
|
||||
"origins": []
|
||||
}
|
||||
Reference in New Issue
Block a user