feat(test): add custom metrics reporter and update playwright config

This commit is contained in:
2026-04-09 19:30:44 +08:00
parent 6b92fd6db1
commit ae0b8b7c96
2 changed files with 73 additions and 2 deletions
+6 -2
View File
@@ -43,9 +43,13 @@ export default defineConfig({
? [
['html', { outputFolder: 'reports/html', open: 'never' }],
['json', { outputFile: 'reports/results.json' }],
['list']
['list'],
['./e2e/utils/test-reporter.ts']
]
: 'html',
: [
['html', { outputFolder: 'reports/html', open: 'never' }],
['./e2e/utils/test-reporter.ts']
],
use: {
baseURL,
trace: 'on-first-retry',