chore: provide blob name for web and html reporter tests

This commit is contained in:
Pavel Feldman 2025-02-26 20:56:29 -08:00
parent 58db3f7e3f
commit 66eb60897e
2 changed files with 6 additions and 3 deletions

View file

@ -23,7 +23,11 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
snapshotPathTemplate: '{testDir}/__screenshots__/{projectName}/{testFilePath}/{arg}{ext}',
reporter: process.env.CI ? 'blob' : 'html',
reporter: process.env.CI ? [
['blob', { fileName: `${process.env.PWTEST_BOT_NAME}.zip` }],
] : [
['html']
],
use: {
ctPort: 3101,
ctViteConfig: {

View file

@ -19,8 +19,7 @@ import type { ReporterDescription } from '@playwright/test';
const reporters = () => {
const result: ReporterDescription[] = process.env.CI ? [
['html'],
['blob'],
['blob', { fileName: `${process.env.PWTEST_BOT_NAME}.zip` }],
] : [
['html']
];