From 7a61aa25e6333cd67132c40957248125b20ef6f1 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Thu, 27 Feb 2025 13:22:07 -0800 Subject: [PATCH] chore: provide blob name for web and html reporter tests (#34940) --- packages/html-reporter/playwright.config.ts | 6 +++++- packages/web/playwright.config.ts | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/html-reporter/playwright.config.ts b/packages/html-reporter/playwright.config.ts index 1e6cb8b8a3..1f849f807e 100644 --- a/packages/html-reporter/playwright.config.ts +++ b/packages/html-reporter/playwright.config.ts @@ -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: { diff --git a/packages/web/playwright.config.ts b/packages/web/playwright.config.ts index 8169cfa661..6cf9899b36 100644 --- a/packages/web/playwright.config.ts +++ b/packages/web/playwright.config.ts @@ -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'] ];