chore: provide blob name for web and html reporter tests (#34940)

This commit is contained in:
Pavel Feldman 2025-02-27 13:22:07 -08:00 committed by GitHub
parent 67d6f7f603
commit 7a61aa25e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -23,7 +23,11 @@ export default defineConfig({
forbidOnly: !!process.env.CI, forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0, retries: process.env.CI ? 2 : 0,
snapshotPathTemplate: '{testDir}/__screenshots__/{projectName}/{testFilePath}/{arg}{ext}', 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: { use: {
ctPort: 3101, ctPort: 3101,
ctViteConfig: { ctViteConfig: {

View file

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